From 24d6aff794f00478d28d7a411ff02b7b7a4b8eb6 Mon Sep 17 00:00:00 2001 From: Shish Date: Fri, 21 Jun 2024 12:57:08 +0100 Subject: [PATCH] [core] remove unusued isnull SQL function --- core/dbengine.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/core/dbengine.php b/core/dbengine.php index 3a7ca35f..c17176f3 100644 --- a/core/dbengine.php +++ b/core/dbengine.php @@ -147,10 +147,6 @@ function _log(float $a, ?float $b = null): float return log($b, $a); } } -function _isnull(mixed $a): bool -{ - return is_null($a); -} function _md5(string $a): string { return md5($a); @@ -180,7 +176,6 @@ class SQLite extends DBEngine $db->sqliteCreateFunction('now', 'Shimmie2\_now', 0); $db->sqliteCreateFunction('floor', 'Shimmie2\_floor', 1); $db->sqliteCreateFunction('log', 'Shimmie2\_log'); - $db->sqliteCreateFunction('isnull', 'Shimmie2\_isnull', 1); $db->sqliteCreateFunction('md5', 'Shimmie2\_md5', 1); $db->sqliteCreateFunction('lower', 'Shimmie2\_lower', 1); $db->sqliteCreateFunction('rand', 'Shimmie2\_rand', 0);