Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Remove unused events.
James Cole89d96ddc17e7
diff --git a/app/Events/DestroyedTransactionGroup.php b/app/Events/DestroyedTransactionGroup.phpdeleted file mode 100644index 2468831129..0000000000--- a/app/Events/DestroyedTransactionGroup.php+++ /dev/null@@ -1,46 +0,0 @@-<?php--/**- * DestroyedTransactionGroup.php- * Copyright (c) 2019 [email protected]- *- * This file is part of Firefly III (https://github.com/firefly-iii).- *- * This program is free software: you can redistribute it and/or modify- * it under the terms of the GNU Affero General Public License as- * published by the Free Software Foundation, either version 3 of the- * License, or (at your option) any later version.- *- * This program is distributed in the hope that it will be useful,- * but WITHOUT ANY WARRANTY; without even the implied warranty of- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the- * GNU Affero General Public License for more details.- *- * You should have received a copy of the GNU Affero General Public License- * along with this program. If not, see <https://www.gnu.org/licenses/>.- */--declare(strict_types=1);--namespace FireflyIII\Events;--use FireflyIII\Models\TransactionGroup;-use Illuminate\Queue\SerializesModels;-use Illuminate\Support\Facades\Log;--/**- * Class DestroyedTransactionGroup.- */-class DestroyedTransactionGroup extends Event-{- use SerializesModels;-- /**- * Create a new event instance.- */- public function __construct(- public TransactionGroup $transactionGroup- ) {- Log::debug(sprintf('Now in %s', __METHOD__));- }-}diff --git a/app/Events/StoredTransactionGroup.php b/app/Events/StoredTransactionGroup.phpdeleted file mode 100644index 743018ea2f..0000000000--- a/app/Events/StoredTransactionGroup.php+++ /dev/null@@ -1,45 +0,0 @@-<?php--/**- * StoredTransactionGroup.php- * Copyright (c) 2019 [email protected]- *- * This file is part of Firefly III (https://github.com/firefly-iii).- *- * This program is free software: you can redistribute it and/or modify- * it under the terms of the GNU Affero General Public License as- * published by the Free Software Foundation, either version 3 of the- * License, or (at your option) any later version.- *- * This program is distributed in the hope that it will be useful,- * but WITHOUT ANY WARRANTY; without even the implied warranty of- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the- * GNU Affero General Public License for more details.- *- * You should have received a copy of the GNU Affero General Public License- * along with this program. If not, see <https://www.gnu.org/licenses/>.- */--declare(strict_types=1);--namespace FireflyIII\Events;--use FireflyIII\Models\TransactionGroup;-use Illuminate\Queue\SerializesModels;--/**- * Class StoredTransactionGroup.- */-class StoredTransactionGroup extends Event-{- use SerializesModels;-- /**- * Create a new event instance.- */- public function __construct(- public TransactionGroup $transactionGroup,- public bool $applyRules,- public bool $fireWebhooks- ) {}-}diff --git a/app/Events/UpdatedTransactionGroup.php b/app/Events/UpdatedTransactionGroup.phpdeleted file mode 100644index 00160e97ac..0000000000--- a/app/Events/UpdatedTransactionGroup.php+++ /dev/null@@ -1,46 +0,0 @@-<?php--/**- * UpdatedTransactionGroup.php- * Copyright (c) 2019 [email protected]- *- * This file is part of Firefly III (https://github.com/firefly-iii).- *- * This program is free software: you can redistribute it and/or modify- * it under the terms of the GNU Affero General Public License as- * published by the Free Software Foundation, either version 3 of the- * License, or (at your option) any later version.- *- * This program is distributed in the hope that it will be useful,- * but WITHOUT ANY WARRANTY; without even the implied warranty of- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the- * GNU Affero General Public License for more details.- *- * You should have received a copy of the GNU Affero General Public License- * along with this program. If not, see <https://www.gnu.org/licenses/>.- */--declare(strict_types=1);--namespace FireflyIII\Events;--use FireflyIII\Models\TransactionGroup;-use Illuminate\Queue\SerializesModels;--/**- * Class UpdatedTransactionGroup.- */-class UpdatedTransactionGroup extends Event-{- use SerializesModels;-- /**- * Create a new event instance.- */- public function __construct(- public TransactionGroup $transactionGroup,- public bool $applyRules,- public bool $fireWebhooks,- public bool $runRecalculations- ) {}-}diff --git a/app/Services/Internal/Destroy/TransactionGroupDestroyService.php b/app/Services/Internal/Destroy/TransactionGroupDestroyService.phpindex 73490f8741..e9031efec0 100644--- a/app/Services/Internal/Destroy/TransactionGroupDestroyService.php+++ b/app/Services/Internal/Destroy/TransactionGroupDestroyService.php@@ -24,7 +24,6 @@ declare(strict_types=1);namespace FireflyIII\Services\Internal\Destroy;-use FireflyIII\Events\DestroyedTransactionGroup;use FireflyIII\Events\Model\TransactionGroup\DestroyedSingleTransactionGroup;use FireflyIII\Models\TransactionGroup;use Illuminate\Support\Facades\Log;