[AppDB 2/5] Get rid of some old dead code
André Hentschel
nerv at dawncrow.de
Thu Nov 17 12:32:00 CST 2016
---
include/html.php | 15 ---------------
include/incl.php | 6 ------
include/tableve.php | 26 --------------------------
3 files changed, 47 deletions(-)
diff --git a/include/html.php b/include/html.php
index b015f9f..82c524d 100644
--- a/include/html.php
+++ b/include/html.php
@@ -136,21 +136,6 @@ function html_ahref($label, $url, $extra = "")
}
}
-function html_imagebutton($text, $url, $extra = "")
-{
- static $i = 1;
-
- $i++;
- $img1 = apidb_url("util/button.php?text=".urlencode($text)."&pressed=0");
- $img2 = apidb_url("util/button.php?text=".urlencode($text)."&pressed=1");
-
- $java = "onMouseDown = 'document.img$i.src = \"$img2\"; return true;' ";
- $java .= "onMouseUp = 'document.img$i.src = \"$img1\"; return true;' ";
-
- return "\n<a href=\"$url\" $extra $java>\n <img src=\"$img1\" name=\"img$i\" alt=\"$text\"> </a>\n";
-}
-
-
function html_frame_start($title = "", $width = "", $extra = "", $innerPad = 0)
{
diff --git a/include/incl.php b/include/incl.php
index 624b7b1..c30a8a0 100644
--- a/include/incl.php
+++ b/include/incl.php
@@ -94,12 +94,6 @@ function apidb_help_add($desc, $id)
}
-// return url with docroot prepended
-function apidb_url($path)
-{
- return BASE.$path;
-}
-
// return FULL url with docroot prepended
function apidb_fullurl($path = "")
{
diff --git a/include/tableve.php b/include/tableve.php
index 9a4e11a..7e7fad8 100644
--- a/include/tableve.php
+++ b/include/tableve.php
@@ -268,8 +268,6 @@ class TableVE {
echo "$value \n";
break;
}
-
- $this->entry_add_extra($field, $value);
}
function view_entry_output_field($field, $value, $len)
@@ -319,30 +317,6 @@ class TableVE {
echo "$value \n";
break;
}
-
- $this->entry_add_extra($field, $value);
- }
-
-
- /*
- * add extra stuff to certain fields
- */
- function entry_add_extra($field, $value)
- {
- /*
- * add extra stuff to certain fields
- */
-
- if($field->name == "mslink" && $value)
- {
- echo html_imagebutton("Go!", $value);
- }
-
- if($field->name == "apiname")
- {
- echo html_imagebutton("Wine LXR", "http://twine.codeweavers.com/lxr/ident?i=$value");
- echo html_imagebutton("Wine API", "http://www.winehq.com/WineAPI/$value.html");
- }
}
--
2.7.4
More information about the wine-patches
mailing list