Paul Vriens : transl: Remove unused file.

Alexandre Julliard julliard at winehq.org
Wed Jul 22 09:06:52 CDT 2009


Module: tools
Branch: master
Commit: 84895677e96f2839cf9ec8ebcd54790b85f39824
URL:    http://source.winehq.org/git/tools.git/?a=commit;h=84895677e96f2839cf9ec8ebcd54790b85f39824

Author: Paul Vriens <Paul.Vriens.Wine at gmail.com>
Date:   Tue Jul 21 17:52:47 2009 +0200

transl: Remove unused file.

---

 transl/php/lib_res.php   |   20 --------------------
 transl/php/resource.php  |    2 --
 transl/php/stopwatch.php |   46 ----------------------------------------------
 3 files changed, 0 insertions(+), 68 deletions(-)

diff --git a/transl/php/lib_res.php b/transl/php/lib_res.php
index cbb60a8..c62e3ce 100644
--- a/transl/php/lib_res.php
+++ b/transl/php/lib_res.php
@@ -305,27 +305,8 @@ class ResFile
         return FALSE;
     }
 
-    function load_resource_helper($header, $f, $params)
-    {
-        $curr_lang = ($params[5] ? ($header["language"] & 0x3ff) : $header["language"]); /* check the ignore_sublang */
-        if ($header["type"] == $params[0] && $header["name"] == $params[1] && $curr_lang == $params[2])
-        {
-            $params[3] = $header;
-            $params[4] = fread($f, $header["resSize"]);
-            return TRUE;
-        }
-        return FALSE;
-    }
-
     function loadResource($type, $name, $language, $ignore_sublang = FALSE)
     {
-//        $sw = new Stopwatch();
-/*      too slow
-        if ($this->enumResources(array($this, 'load_resource_helper'), array($type, $name, $language, &$header, &$out, $ignore_sublang)))
-        {
-            return array($header, $out);
-        }*/
-        
         fseek($this->file, 0);
         $pos = 0;
 
@@ -360,7 +341,6 @@ class ResFile
                     {
                         fseek($this->file, $pos + $headerSize);
                         $out = fread($this->file, $resSize);
-//                        $sw->stop();
                         return array($header, $out);
                     }
                 }
diff --git a/transl/php/resource.php b/transl/php/resource.php
index 493e9f1..656d5bf 100644
--- a/transl/php/resource.php
+++ b/transl/php/resource.php
@@ -24,8 +24,6 @@ $compare = isset($_REQUEST['compare']);
 
 <?php
 
-//include_once("stopwatch.php");
-
 function load_resource(&$resources, $type, $id, $langid, &$res)
 {
     $file_type = $type & 0xff;  /* wrc adds 0x100 for *EX resource*/
diff --git a/transl/php/stopwatch.php b/transl/php/stopwatch.php
deleted file mode 100644
index ba227c9..0000000
--- a/transl/php/stopwatch.php
+++ /dev/null
@@ -1,46 +0,0 @@
-<?php
-
-class Stopwatch
-{
-    function Stopwatch($name = "")
-    {
-        $this->time = 0;
-        $this->name = "";
-        $this->running = TRUE;
-        $this->time = $this->get_microtime();
-    }
-
-    function get_microtime()
-    {
-        $time = split(" ", microtime());
-        return $time[0] + $time[1];
-    }
-
-    function pause()
-    {
-        if (!$this->running)
-            die("illegal stopwatch stop");
-        $this->running = FALSE;
-        $this->time = $this->get_microtime() - $this->time;
-    }
-
-    function resume()
-    {
-        if ($this->running)
-            die("illegal stopwatch stop");
-        $this->running = TRUE;
-        $this->time = $this->get_microtime() - $this->time;
-    }
-
-    function stop()
-    {
-        $this->pause();
-        echo "Stopwatch ".$this->name." run for ".$this->time."<br/>";
-    }
-
-    var $time;
-    var $running;
-    var $name;
-}
-
-?>
\ No newline at end of file




More information about the wine-cvs mailing list