Method no longer used.

This commit is contained in:
James Cole 2016-01-01 19:58:31 +01:00
parent fc5b315af0
commit efc9bc71a7
2 changed files with 0 additions and 32 deletions

View File

@ -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

View File

@ -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