From 3c5fa7d67286af8719c886f0ff8a5cda9e25af90 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 | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/lib/Tools/Db/ExtendedQueryBuilder.php b/lib/Tools/Db/ExtendedQueryBuilder.php index 8d936b8b..04944a05 100644 --- a/lib/Tools/Db/ExtendedQueryBuilder.php +++ b/lib/Tools/Db/ExtendedQueryBuilder.php @@ -59,19 +59,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) + ); }