diff options
author | Jeremy Benoist <jeremy.benoist@gmail.com> | 2019-05-24 15:43:30 +0200 |
---|---|---|
committer | Jeremy Benoist <jeremy.benoist@gmail.com> | 2019-05-24 15:46:28 +0200 |
commit | 629a3797bcef33943df8ef5631328e05d12634ed (patch) | |
tree | 707517826b8bad8aebf724ba2dc66d13daa29cf2 /src/Wallabag/CoreBundle | |
parent | 0132ccd2a2e73a831fa198940c369bcdd5249e8b (diff) | |
download | wallabag-629a3797bcef33943df8ef5631328e05d12634ed.tar.gz wallabag-629a3797bcef33943df8ef5631328e05d12634ed.tar.zst wallabag-629a3797bcef33943df8ef5631328e05d12634ed.zip |
Remove useless methods
Also fix a phpdoc block
Diffstat (limited to 'src/Wallabag/CoreBundle')
-rw-r--r-- | src/Wallabag/CoreBundle/Repository/EntryRepository.php | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/src/Wallabag/CoreBundle/Repository/EntryRepository.php b/src/Wallabag/CoreBundle/Repository/EntryRepository.php index 7c4a05ed..880e7c65 100644 --- a/src/Wallabag/CoreBundle/Repository/EntryRepository.php +++ b/src/Wallabag/CoreBundle/Repository/EntryRepository.php | |||
@@ -509,32 +509,6 @@ class EntryRepository extends EntityRepository | |||
509 | } | 509 | } |
510 | 510 | ||
511 | /** | 511 | /** |
512 | * Inject a UrlHasher. | ||
513 | * | ||
514 | * @param UrlHasher $hasher | ||
515 | */ | ||
516 | public function setUrlHasher(UrlHasher $hasher) | ||
517 | { | ||
518 | $this->urlHasher = $hasher; | ||
519 | } | ||
520 | |||
521 | /** | ||
522 | * Get the UrlHasher, or create a default one if not injected. | ||
523 | * | ||
524 | * XXX: the default uses the default hash algorithm | ||
525 | * | ||
526 | * @return UrlHasher | ||
527 | */ | ||
528 | protected function getUrlHasher() | ||
529 | { | ||
530 | if (!isset($this->urlHasher)) { | ||
531 | $this->setUrlHasher(new UrlHasher()); | ||
532 | } | ||
533 | |||
534 | return $this->urlHasher; | ||
535 | } | ||
536 | |||
537 | /** | ||
538 | * Return a query builder to be used by other getBuilderFor* method. | 512 | * Return a query builder to be used by other getBuilderFor* method. |
539 | * | 513 | * |
540 | * @param int $userId | 514 | * @param int $userId |