From cc243f9fb7e671e749f3005d3ca7ad82586703aa Mon Sep 17 00:00:00 2001 From: James Cole Date: Sun, 11 Aug 2019 07:29:13 +0200 Subject: [PATCH] Remove unused methods. --- .../Category/CategoryRepository.php | 22 ------------------- .../Category/CategoryRepositoryInterface.php | 9 -------- 2 files changed, 31 deletions(-) diff --git a/app/Repositories/Category/CategoryRepository.php b/app/Repositories/Category/CategoryRepository.php index d44fdffe42..9f3db26a2d 100644 --- a/app/Repositories/Category/CategoryRepository.php +++ b/app/Repositories/Category/CategoryRepository.php @@ -699,28 +699,6 @@ class CategoryRepository implements CategoryRepositoryInterface return $return; } - /** - * @param Collection $accounts - * @param Carbon $start - * @param Carbon $end - * - * @return string - */ - public function spentInPeriodWithoutCategory(Collection $accounts, Carbon $start, Carbon $end): string - { - /** @var GroupCollectorInterface $collector */ - $collector = app(GroupCollectorInterface::class); - - $collector->setUser($this->user); - $collector->setRange($start, $end)->setTypes([TransactionType::WITHDRAWAL])->withoutCategory(); - - if ($accounts->count() > 0) { - $collector->setAccounts($accounts); - } - - return $collector->getSum(); - } - /** * @param Category $category * @param array $data diff --git a/app/Repositories/Category/CategoryRepositoryInterface.php b/app/Repositories/Category/CategoryRepositoryInterface.php index b30dc1704c..52a136d37d 100644 --- a/app/Repositories/Category/CategoryRepositoryInterface.php +++ b/app/Repositories/Category/CategoryRepositoryInterface.php @@ -249,15 +249,6 @@ interface CategoryRepositoryInterface */ public function spentInPeriodPerCurrency(Collection $categories, Collection $accounts, Carbon $start, Carbon $end): array; - /** - * @param Collection $accounts - * @param Carbon $start - * @param Carbon $end - * - * @return string - */ - public function spentInPeriodWithoutCategory(Collection $accounts, Carbon $start, Carbon $end): string; - /** * @param array $data *