From 9b52e3b7f5cf027a6eff566cc8111c5ca49a6b57 Mon Sep 17 00:00:00 2001 From: ghost Date: Fri, 28 Jul 2023 12:55:25 +0300 Subject: [PATCH] delete unused constructions --- library/mysql.php | 30 ------------------------------ 1 file changed, 30 deletions(-) diff --git a/library/mysql.php b/library/mysql.php index 7e1702e..63724e2 100644 --- a/library/mysql.php +++ b/library/mysql.php @@ -205,25 +205,6 @@ class MySQL { return $result; } - /* not in use - public function getTotalPagesByHttpCode(mixed $httpCode) { - - if (is_null($httpCode)) { - - $query = $this->_db->query('SELECT COUNT(*) AS `total` FROM `hostPage` WHERE `httpCode` IS NULL'); - - } else { - - $query = $this->_db->prepare('SELECT COUNT(*) AS `total` FROM `hostPage` WHERE `httpCode` = ?'); - - $query->execute([$httpCode]); - - } - - return $query->fetch()->total; - } - */ - public function getHostPage(int $hostId, int $crc32uri) { $query = $this->_db->prepare('SELECT * FROM `hostPage` WHERE `hostId` = ? AND `crc32uri` = ? LIMIT 1'); @@ -555,17 +536,6 @@ class MySQL { return $query->fetch(); } - /* not in use - public function getHostPageSnapDownloads(int $hostPageSnapId) { - - $query = $this->_db->prepare('SELECT * FROM `hostPageSnapDownload` WHERE `hostPageSnapId` = ? LIMIT 1'); - - $query->execute([$hostPageSnapId]); - - return $query->fetchAll(); - } - */ - public function addHostPageSnapDownload(int $hostPageSnapId, string $crc32ip, int $timeAdded) { $query = $this->_db->prepare('INSERT INTO `hostPageSnapDownload` (`hostPageSnapId`,