]> git.wh0rd.org Git - tt-rss.git/commitdiff
remove unused format_libxml_error
authorAndrew Dolgov <noreply@fakecake.org>
Wed, 20 Aug 2014 08:31:10 +0000 (12:31 +0400)
committerAndrew Dolgov <noreply@fakecake.org>
Wed, 20 Aug 2014 08:31:10 +0000 (12:31 +0400)
include/functions.php
include/functions2.php

index ac8fb6302904237725ecd88f77f097483d8d6c21..764dea10eccee68ebaef8e765e4c0bd0442cb80c 100644 (file)
                        $url = key($feedUrls);
                }
 
-               /* libxml_use_internal_errors(true);
-               $doc = new DOMDocument();
-               $doc->loadXML($contents);
-               $error = libxml_get_last_error();
-               libxml_clear_errors();
-
-               if ($error) {
-                       $error_message = format_libxml_error($error);
-
-                       return array("code" => 6, "message" => $error_message);
-               } */
-
                if ($cat_id == "0" || !$cat_id) {
                        $cat_qpart = "NULL";
                } else {
index deeaaf2109f5c93479e2d61f4042a60c451189d5..69f447e8c50bf75a11d74a13c411db3b996a24b0 100644 (file)
                return LABEL_BASE_INDEX - 1 + abs($feed);
        }
 
-       function format_libxml_error($error) {
-               return T_sprintf("LibXML error %s at line %d (column %d): %s",
-                               $error->code, $error->line, $error->column,
-                               $error->message);
-       }
 ?>