Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Remove unused class #11544
James Cole6408db5414b6
diff --git a/app/Events/Model/PiggyBank/ChangedName.php b/app/Events/Model/PiggyBank/ChangedName.phpdeleted file mode 100644index 38638c4e04..0000000000--- a/app/Events/Model/PiggyBank/ChangedName.php+++ /dev/null@@ -1,37 +0,0 @@-<?php---/*- * ChangedName.php- * Copyright (c) 2025 [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\Model\PiggyBank;--use FireflyIII\Events\Event;-use FireflyIII\Models\PiggyBank;-use Illuminate\Queue\SerializesModels;--class ChangedName extends Event-{- use SerializesModels;-- public function __construct(public PiggyBank $piggyBank, public string $oldName, public string $newName) {}-}diff --git a/app/Providers/EventServiceProvider.php b/app/Providers/EventServiceProvider.phpindex 71fcfd9357..5b348737c0 100644--- a/app/Providers/EventServiceProvider.php+++ b/app/Providers/EventServiceProvider.php@@ -27,7 +27,6 @@ use FireflyIII\Events\ActuallyLoggedIn;use FireflyIII\Events\Admin\InvitationCreated;use FireflyIII\Events\DestroyedTransactionGroup;use FireflyIII\Events\DetectedNewIPAddress;-use FireflyIII\Events\Model\PiggyBank\ChangedName;use FireflyIII\Events\Model\Rule\RuleActionFailedOnArray;use FireflyIII\Events\Model\Rule\RuleActionFailedOnObject;use FireflyIII\Events\Model\TransactionGroup\TriggeredStoredTransactionGroup;@@ -173,9 +172,9 @@ class EventServiceProvider extends ServiceProvider// PiggyBankAmountIsChanged::class => [// 'FireflyIII\Handlers\Events\Model\PiggyBankEventHandler@changePiggyAmount',// ],-// ChangedName::class => [-// 'FireflyIII\Handlers\Events\Model\PiggyBankEventHandler@changedPiggyBankName',-// ],+ // ChangedName::class => [+ // 'FireflyIII\Handlers\Events\Model\PiggyBankEventHandler@changedPiggyBankName',+ // ],// rule actionsRuleActionFailedOnArray::class => [