From 3d8783439987d534af5d653a1e0d6cbdb9f40864 Mon Sep 17 00:00:00 2001
From: Kevin Ditscheid <kevin.ditscheid@sgalinski.de>
Date: Thu, 2 Sep 2021 13:58:03 +0200
Subject: [PATCH] [TASK] Remove unused function
 getCountOfLastUpdatedOrHighlightedNewsByCategories

---
 Classes/Domain/Repository/NewsRepository.php | 24 --------------------
 1 file changed, 24 deletions(-)

diff --git a/Classes/Domain/Repository/NewsRepository.php b/Classes/Domain/Repository/NewsRepository.php
index 4b593d0..7bf40bf 100644
--- a/Classes/Domain/Repository/NewsRepository.php
+++ b/Classes/Domain/Repository/NewsRepository.php
@@ -239,30 +239,6 @@ class NewsRepository extends AbstractRepository {
 		)->execute();
 	}
 
-	/**
-	 * Returns the count of all possible last news.
-	 *
-	 * @param bool $onlyHighlighted
-	 * @param array $categoryIds NULL, if the category filter isn't applied, otherwise an array with the categories uid.
-	 * @param bool $hideNeverHighlightedNews
-	 * @param string $sortBy date or positionInTree
-	 * @param array $tagIds NULL, if the tag filter isn't applied, otherwise an array with the tag uids.
-	 * @param int $startTime unix timestamp of the lower limit of the news results date
-	 * @param int $endTime unix timestamp of the upper limit of the news results date
-	 * @return int
-	 * @throws \TYPO3\CMS\Extbase\Persistence\Exception\InvalidQueryException
-	 */
-	public function getCountOfLastUpdatedOrHighlightedNewsByCategories(
-		$onlyHighlighted = FALSE, array $categoryIds = NULL, $hideNeverHighlightedNews = FALSE, $sortBy = 'date',
-		array $tagIds = NULL, $startTime = 0, $endTime = 0
-	): int {
-		return $this->getCount(
-			$this->getQueryForLastUpdatedOrHighlightedNewsByCategories(
-				0, $onlyHighlighted, $categoryIds, 0, $hideNeverHighlightedNews, $sortBy, $tagIds, $startTime, $endTime
-			)
-		);
-	}
-
 	/**
 	 * Returns the query object of the LastUpdatedOrHighlightedNewsByCategories.
 	 *
-- 
GitLab