Remove unused function

Introduce after the rebase I guess
This commit is contained in:
Jeremy Benoist 2017-09-06 22:58:34 +02:00
parent 33264c2d02
commit 9c4a7388da
No known key found for this signature in database
GPG key ID: BCA73962457ACC3C

View file

@ -344,26 +344,6 @@ class EntryRepository extends EntityRepository
return (int) $qb->getQuery()->getSingleScalarResult(); 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. * Remove all entries for a user id.
* Used when a user want to reset all informations. * Used when a user want to reset all informations.