From a6b82610175efcf712627aea1dc7992c1344ed2b Mon Sep 17 00:00:00 2001 From: gravel Date: Wed, 12 Apr 2023 14:39:46 +0000 Subject: [PATCH] Remove unused logic --- php/fetch-servers.php | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/php/fetch-servers.php b/php/fetch-servers.php index 5b662fe..e867c36 100644 --- a/php/fetch-servers.php +++ b/php/fetch-servers.php @@ -82,21 +82,7 @@ log_debug($http_response_header[0]); // Supposed to be "HTTP/1.1 200 OK" log_info("Requesting session.directory list..."); - /* - $index_sdir = file_get_contents($SOURCES['SDIR']); - log_debug($http_response_header[0]); // Supposed to be "HTTP/1.1 200 OK" - - log_info("Crawling session.directory list..."); - $pages_sdir = crawl_source_index( - $index_sdir, - $SOURCES['SDIR-BASE'], - $SOURCES['SDIR-PATTERN'] - ); - */ - - $pages_sdir = []; - $json_sdir = json_decode(file_get_contents($SOURCES['SDIR-JSON'])); log_debug($http_response_header[0]); // Supposed to be "HTTP/1.1 200 OK" foreach ($json_sdir as $room) $pages_sdir[] = $room->url;