diff --git a/CRM/Utils/File.php b/CRM/Utils/File.php index 4dbc7e47e364..bc882aa8f44f 100644 --- a/CRM/Utils/File.php +++ b/CRM/Utils/File.php @@ -48,36 +48,6 @@ public static function isAscii($name) { return $ascii; } - /** - * Given a file name, determine if the file contents make it an html file - * - * @param string $name - * Name of file. - * - * @return bool - * true if file is html - */ - public static function isHtml($name) { - $fd = fopen($name, "r"); - if (!$fd) { - return FALSE; - } - - $html = FALSE; - $lineCount = 0; - while (!feof($fd) & $lineCount <= 5) { - $lineCount++; - $line = fgets($fd, 8192); - if (!CRM_Utils_String::isHtml($line)) { - $html = TRUE; - break; - } - } - - fclose($fd); - return $html; - } - /** * Create a directory given a path name, creates parent directories * if needed