mirror of
https://github.com/wallabag/wallabag.git
synced 2024-11-23 09:31:04 +00:00
Remove unused function
Introduce after the rebase I guess
This commit is contained in:
parent
33264c2d02
commit
9c4a7388da
1 changed files with 0 additions and 20 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue