Skip to content

Firefly III: a personal finances manager

Remove old method and another unused method #524

James Colea79b2a777346
diff --git a/app/Repositories/Category/CategoryRepository.php b/app/Repositories/Category/CategoryRepository.php
index dab725a385..a1ada9272e 100644
--- a/app/Repositories/Category/CategoryRepository.php
+++ b/app/Repositories/Category/CategoryRepository.php
@@ -58,22 +58,6 @@ class CategoryRepository implements CategoryRepositoryInterface
return true;
}
- /**
- * @param Collection $categories
- * @param Collection $accounts
- * @param Carbon $start
- * @param Carbon $end
- *
- * @return string
- */
- public function earnedInPeriod(Collection $categories, Collection $accounts, Carbon $start, Carbon $end): string
- {
- $sum = $this->sumInPeriod($categories, $accounts, TransactionType::DEPOSIT, $start, $end);
-
- return $sum;
-
- }
-
/**
* @param Collection $categories
* @param Collection $accounts
@@ -93,21 +77,6 @@ class CategoryRepository implements CategoryRepositoryInterface
return $sum;
}
- /**
- * @param Collection $accounts
- * @param Carbon $start
- * @param Carbon $end
- *
- * @return string
- */
- public function earnedInPeriodWithoutCategory(Collection $accounts, Carbon $start, Carbon $end): string
- {
- $types = [TransactionType::DEPOSIT, TransactionType::TRANSFER];
- $sum = $this->sumInPeriodWithoutCategory($accounts, $types, $start, $end);
-
- return $sum;
- }
-
/**
* Find a category
*
diff --git a/app/Repositories/Category/CategoryRepositoryInterface.php b/app/Repositories/Category/CategoryRepositoryInterface.php
index 28e333f5b2..61f4810f3a 100644
--- a/app/Repositories/Category/CategoryRepositoryInterface.php
+++ b/app/Repositories/Category/CategoryRepositoryInterface.php
@@ -41,15 +41,6 @@ interface CategoryRepositoryInterface
*/
public function earnedInPeriodCollector(Collection $categories, Collection $accounts, Carbon $start, Carbon $end): string;
- /**
- * @param Collection $accounts
- * @param Carbon $start
- * @param Carbon $end
- *
- * @return string
- */
- public function earnedInPeriodWithoutCategory(Collection $accounts, Carbon $start, Carbon $end): string;
-
/**
* Find a category
*