Skip to content

Firefly III: a personal finances manager

Remove references to deleted code.

James Coled2978a5ee825
diff --git a/app/Handlers/Events/Model/BudgetLimitHandler.php b/app/Handlers/Events/Model/BudgetLimitHandler.php
deleted file mode 100644
index 1fcab8f608..0000000000
--- a/app/Handlers/Events/Model/BudgetLimitHandler.php
+++ /dev/null
@@ -1,45 +0,0 @@
-<?php
-
-/*
- * BudgetLimitHandler.php
- * Copyright (c) 2023 [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\Handlers\Events\Model;
-
-use FireflyIII\Events\Model\BudgetLimit\Created;
-use FireflyIII\Events\Model\BudgetLimit\Deleted;
-use FireflyIII\Events\Model\BudgetLimit\Updated;
-use Illuminate\Support\Facades\Log;
-
-/**
- * Class BudgetLimitHandler
- */
-class BudgetLimitHandler
-{
- public function created(Created $event): void
- {
- Log::debug(sprintf('BudgetLimitHandler::created(#%s)', $event->budgetLimit->id));
- }
-
- public function deleted(Deleted $event): void {}
-
- public function updated(Updated $event): void {}
-}
diff --git a/app/Models/BudgetLimit.php b/app/Models/BudgetLimit.php
index 3fc20b25af..e7270fc7b0 100644
--- a/app/Models/BudgetLimit.php
+++ b/app/Models/BudgetLimit.php
@@ -24,9 +24,6 @@ declare(strict_types=1);
namespace FireflyIII\Models;
use FireflyIII\Casts\SeparateTimezoneCaster;
-use FireflyIII\Events\Model\BudgetLimit\Created;
-use FireflyIII\Events\Model\BudgetLimit\Deleted;
-use FireflyIII\Events\Model\BudgetLimit\Updated;
use FireflyIII\Support\Models\ReturnsIntegerIdTrait;
use Illuminate\Database\Eloquent\Casts\Attribute;
use Illuminate\Database\Eloquent\Model;
@@ -37,12 +34,6 @@ use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
class BudgetLimit extends Model
{
use ReturnsIntegerIdTrait;
- protected $dispatchesEvents
- = [
- 'created' => Created::class,
- 'updated' => Updated::class,
- 'deleted' => Deleted::class,
- ];
protected $fillable = ['budget_id', 'start_date', 'end_date', 'start_date_tz', 'end_date_tz', 'amount', 'transaction_currency_id', 'native_amount'];