diff --git a/app/Repositories/Budget/BudgetRepository.php b/app/Repositories/Budget/BudgetRepository.php index ca8723bc5f..c64a63f3c8 100644 --- a/app/Repositories/Budget/BudgetRepository.php +++ b/app/Repositories/Budget/BudgetRepository.php @@ -416,23 +416,6 @@ class BudgetRepository extends ComponentRepository implements BudgetRepositoryIn return $paginator; } - /** - * @deprecated - * - * @param Budget $budget - * - * @return Carbon - */ - public function getLastBudgetLimitDate(Budget $budget) - { - $limit = $budget->budgetlimits()->orderBy('startdate', 'DESC')->first(); - if ($limit) { - return $limit->startdate; - } - - return Carbon::now()->startOfYear(); - } - /** * @deprecated * diff --git a/app/Repositories/Budget/BudgetRepositoryInterface.php b/app/Repositories/Budget/BudgetRepositoryInterface.php index 1bec454037..bcc478c969 100644 --- a/app/Repositories/Budget/BudgetRepositoryInterface.php +++ b/app/Repositories/Budget/BudgetRepositoryInterface.php @@ -208,15 +208,6 @@ interface BudgetRepositoryInterface */ public function getJournals(Budget $budget, LimitRepetition $repetition = null, $take = 50); - /** - * @deprecated - * - * @param Budget $budget - * - * @return Carbon - */ - public function getLastBudgetLimitDate(Budget $budget); - /** * @deprecated *