Unused code or parameter

Signed-off-by: Marc Delisle <marc@infomarc.info>
This commit is contained in:
Marc Delisle 2014-05-29 12:39:36 -04:00
parent 93f49ab1f8
commit f9a0e1e8e9
3 changed files with 3 additions and 7 deletions

View File

@ -58,6 +58,6 @@ $response->addHTML(
'<div id="togglesearchresultsdiv"><a id="togglesearchresultlink"></a></div>'
. '<br class="clearfloat" />'
);
$response->addHTML($db_search->getSelectionForm($url_params));
$response->addHTML($db_search->getSelectionForm());
$response->addHTML($db_search->getResultDivs());
?>

View File

@ -196,7 +196,6 @@ class PMA_DbSearch
*/
private function _getWhereClause($table)
{
$where_clause = '';
// Columns to select
$allColumns = $GLOBALS['dbi']->getColumns($GLOBALS['db'], $table);
$likeClauses = array();
@ -371,11 +370,9 @@ class PMA_DbSearch
/**
* Provides the main search form's html
*
* @param array $url_params URL parameters
*
* @return string HTML for selection form
*/
public function getSelectionForm($url_params)
public function getSelectionForm()
{
$html_output = '<a id="db_search"></a>';
$html_output .= '<form id="db_search_form"'

View File

@ -183,7 +183,6 @@ class PMA_DbSearch_Test extends PHPUnit_Framework_TestCase
{
$_SESSION['PMA_Theme'] = new PMA_Theme();
$GLOBALS['pmaThemeImage'] = 'themes/dot.gif';
$url_params = array('param1', 'param2');
$this->assertEquals(
'<a id="db_search"></a><form id="db_search_form" class="ajax" '
. 'method="post" action="db_search.php" name="db_search"><input type'
@ -229,7 +228,7 @@ class PMA_DbSearch_Test extends PHPUnit_Framework_TestCase
. 'type="submit" name="submit_search" value="Go" id="buttonGo" />'
. '</fieldset></form><div id="togglesearchformdiv">'
. '<a id="togglesearchformlink"></a></div>',
$this->object->getSelectionForm($url_params)
$this->object->getSelectionForm()
);
}