]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
Remove unused function 3309/head
authorJeremy Benoist <jeremy.benoist@gmail.com>
Wed, 6 Sep 2017 20:58:34 +0000 (22:58 +0200)
committerJeremy Benoist <jeremy.benoist@gmail.com>
Wed, 6 Sep 2017 20:58:35 +0000 (22:58 +0200)
Introduce after the rebase I guess

src/Wallabag/CoreBundle/Repository/EntryRepository.php

index 47db4c079b83decc68e9b29b3cc0213838e0bf47..05f0e0ba17e665bb4cea4ed942d8e7aa1fd406e2 100644 (file)
@@ -344,26 +344,6 @@ class EntryRepository extends EntityRepository
         return (int) $qb->getQuery()->getSingleScalarResult();
     }
 
-    /**
-     * Count all entries for a tag and a user.
-     *
-     * @param int $userId
-     * @param int $tagId
-     *
-     * @return int
-     */
-    public function countAllEntriesByUserIdAndTagId($userId, $tagId)
-    {
-        $qb = $this->createQueryBuilder('e')
-            ->select('count(e.id)')
-            ->leftJoin('e.tags', 't')
-            ->where('e.user = :userId')->setParameter('userId', $userId)
-            ->andWhere('t.id = :tagId')->setParameter('tagId', $tagId)
-        ;
-
-        return (int) $qb->getQuery()->getSingleScalarResult();
-    }
-
     /**
      * Remove all entries for a user id.
      * Used when a user want to reset all informations.