diff --git a/src/Models/SearchParsers/CommentSearchParser.php b/src/Models/SearchParsers/CommentSearchParser.php deleted file mode 100644 index 5147373a..00000000 --- a/src/Models/SearchParsers/CommentSearchParser.php +++ /dev/null @@ -1,25 +0,0 @@ -statement->addInnerJoin('post', new Sql\EqualsFunctor('post_id', 'post.id')); - $crit = new Sql\ConjunctionFunctor(); - - $allowedSafety = array_map( - function($safety) - { - return $safety->toInteger(); - }, - Access::getAllowedSafety()); - $crit->add(Sql\InFunctor::fromArray('post.safety', Sql\Binding::fromArray($allowedSafety))); - - if (!Access::check(new Privilege(Privilege::ListPosts, 'hidden'))) - $crit->add(new Sql\NegationFunctor(new Sql\StringExpression('hidden'))); - - $this->statement->setCriterion($crit); - $this->statement->addOrderBy('comment.id', Sql\SelectStatement::ORDER_DESC); - } -} diff --git a/src/Models/SearchServices/CommentSearchService.php b/src/Models/SearchServices/CommentSearchService.php deleted file mode 100644 index 5d5e18c5..00000000 --- a/src/Models/SearchServices/CommentSearchService.php +++ /dev/null @@ -1,4 +0,0 @@ -