Andre Hentschel : Get rid of some old dead code
Jeremy Newman
jnewman at winehq.org
Mon Nov 21 08:38:09 CST 2016
Module: appdb
Branch: master
Commit: 5bf8291b879f33a88029a8fc48491dcf401d6b83
URL: http://source.winehq.org/git/appdb.git/?a=commit;h=5bf8291b879f33a88029a8fc48491dcf401d6b83
Author: Andre Hentschel <nerv at dawncrow.de>
Date: Fri Nov 18 13:51:24 2016 -0600
Get rid of some old dead code
---
include/appdb.php | 9 ---------
include/html.php | 15 ---------------
include/tableve.php | 27 ---------------------------
3 files changed, 51 deletions(-)
diff --git a/include/appdb.php b/include/appdb.php
index c24d94c..4a92df6 100644
--- a/include/appdb.php
+++ b/include/appdb.php
@@ -6,7 +6,6 @@
/*
* TODO:
* + replace all apidb_ calls with appdb_
- * + apidb_url and apidb_fullurl should be merged
* + addmsg should be removed, and calls replaced with session->addmsg
*/
@@ -213,14 +212,6 @@ function appdb_clear_buffer()
}
/**
- * 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/html.php b/include/html.php
index cc3b309..20b359c 100644
--- a/include/html.php
+++ b/include/html.php
@@ -84,21 +84,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)
{
$style = "";
diff --git a/include/tableve.php b/include/tableve.php
index 9a4e11a..73a1c38 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,33 +317,8 @@ 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");
- }
- }
-
-
/*
* required field for each table.
* When editing a query this field needs to be present in the query
More information about the wine-cvs
mailing list