]> _ Git - cubist_net.git/commitdiff
wait #7819
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 20 Nov 2025 13:56:11 +0000 (14:56 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 20 Nov 2025 13:56:11 +0000 (14:56 +0100)
src/HTTP.php

index 2fb460e32ce08a36dca1f4d37d40f9be340d5878..6ed1394462153472f5cef1a56db8c95960556451 100644 (file)
@@ -141,20 +141,6 @@ class HTTP
         return ['http_code' => $httpcode];
     }
 
-    public static function getHttpCodeComment($httpcode)
-    {
-        switch ($httpcode) {
-            case 301:
-                return " - Moved Permanently: the resource has a new permanent home — update your bookmarks or links.";
-            case 302:
-                return " - Found: tells the client to look at (browse to) another URL.";
-            //case 307:
-            //case 308:
-            case 400:
-                return " - Bad request: this and all future requests should be directed to the given URI.";
-        }
-    }
-
     public static function youtubeVideoExist($videoID)
     {
         $headers = get_headers('https://www.youtube.com/oembed?format=json&url=http://www.youtube.com/watch?v=' . $videoID);