From e3cae7c20aac1d58c1ce2ccdb1d8fd0267bf425a Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Fri, 17 Dec 2021 13:56:37 +0100 Subject: [PATCH] ObjectsTable: remove outdated/duplicate method --- library/Director/Web/Table/ObjectsTable.php | 34 --------------------- 1 file changed, 34 deletions(-) diff --git a/library/Director/Web/Table/ObjectsTable.php b/library/Director/Web/Table/ObjectsTable.php index ca81bfaa..c96c1797 100644 --- a/library/Director/Web/Table/ObjectsTable.php +++ b/library/Director/Web/Table/ObjectsTable.php @@ -343,38 +343,4 @@ class ObjectsTable extends ZfQueryBasedTable return $query; } - - protected static function branchifyQuery(Db $connection, $query, $table, UuidInterface $branchUuid) - { - $right = clone($query); - /** @var Db $conn */ - $conn = $connection; - $db = $connection->getDbAdapter(); - $query->joinLeft( - ['bo' => "branched_$table"], - // TODO: PgHexFunc - $db->quoteInto( - 'bo.uuid = o.uuid AND bo.branch_uuid = ?', - $conn->quoteBinary($branchUuid->getBytes()) - ), - [] - )->where("(bo.branch_deleted IS NULL OR bo.branch_deleted = 'n')"); - $this->applyObjectTypeFilter($query, $right); - $right->joinRight( - ['bo' => "branched_$table"], - 'bo.uuid = o.uuid', - [] - ) - ->where('o.uuid IS NULL') - ->where('bo.branch_uuid = ?', $conn->quoteBinary($branchUuid->getBytes())); - $this->leftSubQuery = $query; - $this->rightSubQuery = $right; - $query = $db->select()->union([ - 'l' => new DbSelectParenthesis($query), - 'r' => new DbSelectParenthesis($right), - ]); - $query = $db->select()->from(['u' => $query]); - $query->order('object_name')->limit(100); - - } }