mirror of
https://github.com/YGGverse/YGGo.git
synced 2025-03-13 05:41:02 +00:00
delete unused constructions
This commit is contained in:
parent
2c17c93e2f
commit
9b52e3b7f5
@ -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`,
|
||||
|
Loading…
x
Reference in New Issue
Block a user