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 @@ -. - */ - -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'];