From 3440960304879b571fc73f82554b1241cd93404b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Tue, 2 Apr 2024 10:55:47 +0200 Subject: [PATCH] chore: Remove old version check MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- lib/Tools/Db/ExtendedQueryBuilder.php | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/lib/Tools/Db/ExtendedQueryBuilder.php b/lib/Tools/Db/ExtendedQueryBuilder.php index 8d936b8b..de926cd8 100644 --- a/lib/Tools/Db/ExtendedQueryBuilder.php +++ b/lib/Tools/Db/ExtendedQueryBuilder.php @@ -44,7 +44,6 @@ use OCP\DB\QueryBuilder\ICompositeExpression; use OCP\DB\QueryBuilder\IQueryBuilder; use OCP\IDBConnection; -use OCP\ILogger; use Psr\Log\LoggerInterface; class ExtendedQueryBuilder extends QueryBuilder { @@ -59,19 +58,11 @@ class ExtendedQueryBuilder extends QueryBuilder { * ExtendedQueryBuilder constructor. */ public function __construct() { - if (\OCP\Util::getVersion()[0] >= 24) { - parent::__construct( - OC::$server->get(IDBConnection::class), - OC::$server->get(SystemConfig::class), - OC::$server->get(LoggerInterface::class) - ); - } else { - parent::__construct( - OC::$server->get(IDBConnection::class), - OC::$server->get(SystemConfig::class), - OC::$server->get(ILogger::class) - ); - } + parent::__construct( + OC::$server->get(IDBConnection::class), + OC::$server->get(SystemConfig::class), + OC::$server->get(LoggerInterface::class) + ); }