From 534bc2442b5d5c5eaa67045380fe37d2134e67bf Mon Sep 17 00:00:00 2001 From: DariusIII Date: Mon, 16 Jul 2018 12:42:03 +0200 Subject: [PATCH] Remove unused collectionCheck function from switch.php --- Changelog | 1 + .../multiprocessing/.do_not_run/switch.php | 16 ---------------- 2 files changed, 1 insertion(+), 16 deletions(-) diff --git a/Changelog b/Changelog index 3664b1657..202d1be5b 100755 --- a/Changelog +++ b/Changelog @@ -1,4 +1,5 @@ 2018-07-16 DariusIII + * CHg: Remove unused collectionCheck function from switch.php * Chg: Update various scripts in misc folder * Chg: Update sphinx tables creation scripts * Chg: Update used libraries to latest versions diff --git a/misc/update/multiprocessing/.do_not_run/switch.php b/misc/update/multiprocessing/.do_not_run/switch.php index 07e6eb461..c4d81387d 100644 --- a/misc/update/multiprocessing/.do_not_run/switch.php +++ b/misc/update/multiprocessing/.do_not_run/switch.php @@ -428,22 +428,6 @@ function charCheck($char) return false; } -/** - * Check if the group should be processed. - * - * @param int $groupID - */ -function collectionCheck($groupID) -{ - try { - if (DB::select(sprintf('SELECT id FROM collections_%d LIMIT 1', $groupID)) === 0) { - exit(); - } - } catch (PDOException $e) { - $e->getMessage(); - } -} - /** * Connect to usenet, return NNTP object. *