>From 00114ec6b4f925dd6fa71b3f49b6d6e446edafbb Mon Sep 17 00:00:00 2001 From: Paul Vriens Date: Tue, 21 Jul 2009 17:52:47 +0200 Subject: [PATCH] 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(-) delete mode 100644 transl/php/stopwatch.php 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']); 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."
"; - } - - var $time; - var $running; - var $name; -} - -?> \ No newline at end of file -- 1.6.0.6