Browse Source

delete unused constructions

main
ghost 1 year ago
parent
commit
9b52e3b7f5
  1. 30
      library/mysql.php

30
library/mysql.php

@ -205,25 +205,6 @@ class MySQL {
return $result; 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) { public function getHostPage(int $hostId, int $crc32uri) {
$query = $this->_db->prepare('SELECT * FROM `hostPage` WHERE `hostId` = ? AND `crc32uri` = ? LIMIT 1'); $query = $this->_db->prepare('SELECT * FROM `hostPage` WHERE `hostId` = ? AND `crc32uri` = ? LIMIT 1');
@ -555,17 +536,6 @@ class MySQL {
return $query->fetch(); 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) { public function addHostPageSnapDownload(int $hostPageSnapId, string $crc32ip, int $timeAdded) {
$query = $this->_db->prepare('INSERT INTO `hostPageSnapDownload` (`hostPageSnapId`, $query = $this->_db->prepare('INSERT INTO `hostPageSnapDownload` (`hostPageSnapId`,

Loading…
Cancel
Save