From f9a0e1e8e9cc1fea83527a413f6faa9285abe19e Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Thu, 29 May 2014 12:39:36 -0400 Subject: [PATCH] Unused code or parameter Signed-off-by: Marc Delisle --- db_search.php | 2 +- libraries/DbSearch.class.php | 5 +---- test/classes/PMA_DbSearch_test.php | 3 +-- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/db_search.php b/db_search.php index dba5c4416b..364ff521f6 100644 --- a/db_search.php +++ b/db_search.php @@ -58,6 +58,6 @@ $response->addHTML( '
' . '
' ); -$response->addHTML($db_search->getSelectionForm($url_params)); +$response->addHTML($db_search->getSelectionForm()); $response->addHTML($db_search->getResultDivs()); ?> diff --git a/libraries/DbSearch.class.php b/libraries/DbSearch.class.php index b98586863f..9fcd2e75f4 100644 --- a/libraries/DbSearch.class.php +++ b/libraries/DbSearch.class.php @@ -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 = ''; $html_output .= '
assertEquals( '' . '
' . '
', - $this->object->getSelectionForm($url_params) + $this->object->getSelectionForm() ); }