diff --git a/app/Repositories/Budget/BudgetRepository.php b/app/Repositories/Budget/BudgetRepository.php index c64a63f3c8..6aca1f3cbb 100644 --- a/app/Repositories/Budget/BudgetRepository.php +++ b/app/Repositories/Budget/BudgetRepository.php @@ -416,28 +416,6 @@ class BudgetRepository extends ComponentRepository implements BudgetRepositoryIn return $paginator; } - /** - * @deprecated - * - * @param Budget $budget - * @param Carbon $date - * - * @return float|null - */ - public function getLimitAmountOnDate(Budget $budget, Carbon $date) - { - $repetition = LimitRepetition::leftJoin('budget_limits', 'limit_repetitions.budget_limit_id', '=', 'budget_limits.id') - ->where('limit_repetitions.startdate', $date->format('Y-m-d 00:00:00')) - ->where('budget_limits.budget_id', $budget->id) - ->first(['limit_repetitions.*']); - - if ($repetition) { - return $repetition->amount; - } - - return null; - } - /** * @param Carbon $start * @param Carbon $end diff --git a/app/Repositories/Budget/BudgetRepositoryInterface.php b/app/Repositories/Budget/BudgetRepositoryInterface.php index bcc478c969..0411da4d77 100644 --- a/app/Repositories/Budget/BudgetRepositoryInterface.php +++ b/app/Repositories/Budget/BudgetRepositoryInterface.php @@ -208,16 +208,6 @@ interface BudgetRepositoryInterface */ public function getJournals(Budget $budget, LimitRepetition $repetition = null, $take = 50); - /** - * @deprecated - * - * @param Budget $budget - * @param Carbon $date - * - * @return float - */ - public function getLimitAmountOnDate(Budget $budget, Carbon $date); - /** * @param Carbon $start * @param Carbon $end