diff options
author | Maxence Lange <maxence@artificial-owl.com> | 2018-11-30 10:21:11 -0100 |
---|---|---|
committer | Maxence Lange <maxence@artificial-owl.com> | 2018-11-30 10:21:11 -0100 |
commit | c27f697f0a64ac253b938d2b4535e108b0cca7e1 (patch) | |
tree | a1652e7df77457579d88ab85718538439d860a34 /lib/Db | |
parent | 75447af7671b9e45d3f5db0ba75bbfcd6a0318a3 (diff) |
cleaning
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Diffstat (limited to 'lib/Db')
-rw-r--r-- | lib/Db/CacheActorsRequest.php | 27 | ||||
-rw-r--r-- | lib/Db/FollowsRequestBuilder.php | 16 | ||||
-rw-r--r-- | lib/Db/RequestQueueRequest.php | 1 |
3 files changed, 0 insertions, 44 deletions
diff --git a/lib/Db/CacheActorsRequest.php b/lib/Db/CacheActorsRequest.php index 1be44384..3a9a07b0 100644 --- a/lib/Db/CacheActorsRequest.php +++ b/lib/Db/CacheActorsRequest.php @@ -202,32 +202,6 @@ class CacheActorsRequest extends CacheActorsRequestBuilder { /** - * get Cached version of a local Actor, based on the preferred username - * - * @param string $account - * - * @return Person - * @throws CacheActorDoesNotExistException - */ - public function getFromLocalAccount(string $account): Person { - $qb = $this->getCacheActorsSelectSql(); - $this->limitToPreferredUsername($qb, $account); - $this->limitToLocal($qb, true); - $this->leftJoinCacheDocuments($qb, 'icon_id'); - - $cursor = $qb->execute(); - $data = $cursor->fetch(); - $cursor->closeCursor(); - - if ($data === false) { - throw new CacheActorDoesNotExistException(); - } - - return $this->parseCacheActorsSelectSql($data); - } - - - /** * @param string $search * @param string $viewerId * @@ -243,7 +217,6 @@ class CacheActorsRequest extends CacheActorsRequestBuilder { $this->leftJoinFollowAsViewer($qb, 'id', $viewerId, false, 'as_followed'); } - $accounts = []; $cursor = $qb->execute(); while ($data = $cursor->fetch()) { diff --git a/lib/Db/FollowsRequestBuilder.php b/lib/Db/FollowsRequestBuilder.php index 3a1d9445..0f50b37e 100644 --- a/lib/Db/FollowsRequestBuilder.php +++ b/lib/Db/FollowsRequestBuilder.php @@ -109,22 +109,6 @@ class FollowsRequestBuilder extends CoreRequestBuilder { /** - * Base of the Sql Select request for Shares - * - * @return IQueryBuilder - */ - protected function countFollowsSelectSql(): IQueryBuilder { - $qb = $this->dbConnection->getQueryBuilder(); - $qb->selectAlias($qb->createFunction('COUNT(*)'), 'count') - ->from(self::TABLE_SERVER_FOLLOWS, 'f'); - - $this->defaultSelectAlias = 'f'; - - return $qb; - } - - - /** * Base of the Sql Delete request * * @return IQueryBuilder diff --git a/lib/Db/RequestQueueRequest.php b/lib/Db/RequestQueueRequest.php index 4e07ffba..941c1913 100644 --- a/lib/Db/RequestQueueRequest.php +++ b/lib/Db/RequestQueueRequest.php @@ -35,7 +35,6 @@ use DateTime; use Exception; use OCA\Social\Exceptions\QueueStatusException; use OCA\Social\Model\RequestQueue; -use OCA\Social\Service\QueueService; use OCP\DB\QueryBuilder\IQueryBuilder; |