aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJeremy Benoist <jeremy.benoist@gmail.com>2017-09-06 22:58:34 +0200
committerJeremy Benoist <jeremy.benoist@gmail.com>2017-09-06 22:58:35 +0200
commit9c4a7388da9a250b30ff83c380581fe146af5bb1 (patch)
tree149187e619048e845f7d4ea12ac3c75b878111f2
parent33264c2d02fdfe6e8321096491b9c7398cd10e9a (diff)
downloadwallabag-9c4a7388da9a250b30ff83c380581fe146af5bb1.tar.gz
wallabag-9c4a7388da9a250b30ff83c380581fe146af5bb1.tar.zst
wallabag-9c4a7388da9a250b30ff83c380581fe146af5bb1.zip
Remove unused function
Introduce after the rebase I guess
-rw-r--r--src/Wallabag/CoreBundle/Repository/EntryRepository.php20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/Wallabag/CoreBundle/Repository/EntryRepository.php b/src/Wallabag/CoreBundle/Repository/EntryRepository.php
index 47db4c07..05f0e0ba 100644
--- a/src/Wallabag/CoreBundle/Repository/EntryRepository.php
+++ b/src/Wallabag/CoreBundle/Repository/EntryRepository.php
@@ -345,26 +345,6 @@ class EntryRepository extends EntityRepository
345 } 345 }
346 346
347 /** 347 /**
348 * Count all entries for a tag and a user.
349 *
350 * @param int $userId
351 * @param int $tagId
352 *
353 * @return int
354 */
355 public function countAllEntriesByUserIdAndTagId($userId, $tagId)
356 {
357 $qb = $this->createQueryBuilder('e')
358 ->select('count(e.id)')
359 ->leftJoin('e.tags', 't')
360 ->where('e.user = :userId')->setParameter('userId', $userId)
361 ->andWhere('t.id = :tagId')->setParameter('tagId', $tagId)
362 ;
363
364 return (int) $qb->getQuery()->getSingleScalarResult();
365 }
366
367 /**
368 * Remove all entries for a user id. 348 * Remove all entries for a user id.
369 * Used when a user want to reset all informations. 349 * Used when a user want to reset all informations.
370 * 350 *