Jeremy Newman : remove more unused functions

Jeremy Newman jnewman at winehq.org
Mon Nov 21 08:38:10 CST 2016


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

Author: Jeremy Newman <jnewman at codeweavers.com>
Date:   Fri Nov 18 14:00:47 2016 -0600

remove more unused functions

 Based on a patch from: "Andre Hentschel" <nerv at dawncrow.de>

---

 include/html.php | 78 --------------------------------------------------------
 1 file changed, 78 deletions(-)

diff --git a/include/html.php b/include/html.php
index 20b359c..943e879 100644
--- a/include/html.php
+++ b/include/html.php
@@ -109,7 +109,6 @@ function html_frame_end($text = "")
     return "</div>\n";
 }
 
-
 function html_select($name, $values, $default = null, $descs = null)
 {
     $str = "<select name='$name'>\n";
@@ -138,51 +137,6 @@ function html_back_link($howmany = 1, $url = "")
     return ' <a href="'.htmlentities($url).'" class="btn btn-default"><i class="fa fa-arrow-left"></i> Back</a> '."\n";
 }
 
-
-function p()
-{
-    return "\n<p> </p>\n";
-}
-
-function add_br($text = "")
-{
-    $text = str_replace("\n","<br>\n",$text);
-    return $text;
-}
-
-function make_dll_option_list($varname, $dllid = -1)
-{
-    $db = new ApiDB();
-
-    echo "<select name='$varname'>\n";
-    //echo "<option value='ALL'>ALL\n";
-    $list = $db->get_dll_names();
-    while(list($name, $id) = each($list))
-    {
-        if($dllid == $id)
-        echo "<option value=$id selected>$name  ($id)\n";
-        else
-        echo "<option value=$id>$name  ($id)\n";
-    }
-    echo "</select>\n";
-}
-
-
-function make_inx_option_list($varname, $inx = null)
-{
-    $list = array("yes", "no", "stub", "unknown");
-    echo "<select name='$varname'>\n";
-    while(list($idx, $value) = each($list))
-        {
-            if($value == $inx)
-                echo "<option value=$value selected>$value\n";
-            else
-                echo "<option value=$value>$value\n";
-        }
-    echo "</select>\n";
-
-}
-
 /* Displays a note box using bootstrap panel */
 /*  mode: default, primary, success, info, warning, danger */
 function html_note($heading = '', $body = '', $footer = '', $mode = 'default')
@@ -214,36 +168,4 @@ function html_radiobuttons($aIds, $aOptions, $sName, $sDefault = '', $bLineBreak
     return $shRet;
 }
 
-function html_checkbox($sName, $sValue, $shText, $bChecked)
-{
-    if($bChecked)
-        $sSelected = ' checked="checked"';
-    else
-        $sSelected = '';
-
-    return "<input type=\"checkbox\" name=\"$sName\" value=\"$sValue\"$sSelected /> $shText\n";
-}
-
-function html_checkboxes($sName, $aValues, $aTexts, $aSelected)
-{
-    $shRet = '';
-
-    for($i = 0; $i < sizeof($aValues); $i++)
-        $shRet .= html_checkbox($sName.$i, $aValues[$i], $aTexts[$i], $aSelected[$i]).'<br />';
-
-    return $shRet;
-}
-
-function html_read_input_series($sName, $aInput, $iCount)
-{
-    $aRet = array();
-
-    for($i = 0; $i < $iCount; $i++)
-    {
-        $aRet[] = getInput($sName.$i, $aInput);
-    }
-
-    return $aRet;
-}
-
 ?>




More information about the wine-cvs mailing list