From: Nicolas LÅ“uillet Date: Tue, 3 May 2016 07:39:34 +0000 (+0200) Subject: Remove useless method X-Git-Tag: 2.0.4~12^2 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=e9023a16eba20655965b658ce4dbb2229dfe2546;p=github%2Fwallabag%2Fwallabag.git Remove useless method --- diff --git a/src/Wallabag/CoreBundle/Repository/TagRepository.php b/src/Wallabag/CoreBundle/Repository/TagRepository.php index c567317e..abf915fe 100644 --- a/src/Wallabag/CoreBundle/Repository/TagRepository.php +++ b/src/Wallabag/CoreBundle/Repository/TagRepository.php @@ -6,20 +6,6 @@ use Doctrine\ORM\EntityRepository; class TagRepository extends EntityRepository { - /** - * Return only the QueryBuilder to retrieve all tags for a given user. - * - * @param int $userId - * - * @return QueryBuilder - */ - private function getQbForAllTags($userId) - { - return $this->createQueryBuilder('t') - ->leftJoin('t.entries', 'e') - ->where('e.user = :userId')->setParameter('userId', $userId); - } - /** * Find Tags. * @@ -29,7 +15,9 @@ class TagRepository extends EntityRepository */ public function findAllTags($userId) { - return $this->getQbForAllTags($userId) + return $this->createQueryBuilder('t') + ->leftJoin('t.entries', 'e') + ->where('e.user = :userId')->setParameter('userId', $userId) ->getQuery() ->getResult(); }