Alexander N.=?UTF-8?Q?=20S=C3=B8rnes=20?=: util: Remove unused get_xml_tag

Alexander Nicolaysen Sørnes asornes at winehq.org
Sat Oct 8 09:56:59 CDT 2011


Module: appdb
Branch: master
Commit: 1056281263695c2a79b87db1e50b924e1b1528ce
URL:    http://source.winehq.org/git/appdb.git/?a=commit;h=1056281263695c2a79b87db1e50b924e1b1528ce

Author: Alexander N. Sørnes <alexsornes at gmail.com>
Date:   Tue Sep 27 12:24:35 2011 +0200

util: Remove unused get_xml_tag

---

 include/util.php |   18 ------------------
 1 files changed, 0 insertions(+), 18 deletions(-)

diff --git a/include/util.php b/include/util.php
index f8a0678..2549b04 100644
--- a/include/util.php
+++ b/include/util.php
@@ -131,24 +131,6 @@ function htmlify_urls($text)
     return $text;
 }
 
-// open file and display contents of selected tag
-function get_xml_tag ($file, $mode = null)
-{
-    if ($mode and file_exists($file))
-    {
-        $fp = @fopen($file, "r");
-        $data = fread($fp, filesize($file));
-        @fclose($fp);
-        if (eregi("<" . $mode . ">(.*)</" . $mode . ">", $data, $out))
-        {
-            return $out[1];
-        }
-    }
-    else
-    {
-        return null;
-    }
-}
 
 /* bugzilla functions */
 




More information about the wine-cvs mailing list