Skip to content

Commit

Permalink
remove unused variables
Browse files Browse the repository at this point in the history
  • Loading branch information
ruleant committed May 5, 2012
1 parent 2889689 commit 3bfee1e
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 11 deletions.
2 changes: 0 additions & 2 deletions libraries/export/htmlword.php
Original file line number Diff line number Diff line change
Expand Up @@ -240,8 +240,6 @@ function PMA_exportData($db, $table, $crlf, $error_url, $sql_query)
function PMA_getTableDefStandIn($db, $view, $crlf)
{
$schema_insert = '<table class="width100" cellspacing="1">';

$columns_cnt = 4;
$schema_insert .= '<tr class="print-category">';
$schema_insert .= '<th class="print">'
. __('Column')
Expand Down
1 change: 0 additions & 1 deletion libraries/export/sql.php
Original file line number Diff line number Diff line change
Expand Up @@ -1185,7 +1185,6 @@ function PMA_getTableComments(
) {
global $cfgRelation;
global $sql_backquotes;
global $sql_constraints;

$schema_create = '';

Expand Down
2 changes: 0 additions & 2 deletions libraries/export/texytext.php
Original file line number Diff line number Diff line change
Expand Up @@ -234,8 +234,6 @@ function PMA_getTableDefStandIn($db, $view, $crlf)
* Displays the table structure
*/

$columns_cnt = 4;

$text_output .= "|------\n";
$text_output .= '|' . __('Column');
$text_output .= '|' . __('Type');
Expand Down
2 changes: 0 additions & 2 deletions libraries/export/xml.php
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,6 @@ function PMA_exportHeader()
$head .= ' </pma:function>' . $crlf;
}

unset($create_func);
unset($function);
unset($functions);
}
Expand All @@ -293,7 +292,6 @@ function PMA_exportHeader()
$head .= ' </pma:procedure>' . $crlf;
}

unset($create_proc);
unset($procedure);
unset($procedures);
}
Expand Down
2 changes: 1 addition & 1 deletion libraries/import/mediawiki.php
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ function PMA_importDataOneTable ($table)
*/
function PMA_setTableName(&$table_name)
{
if (empty($table_name) && strlen($db)) {
if (empty($table_name)) {
$result = PMA_DBI_fetch_result('SHOW TABLES');
// todo check if the name below already exists
$table_name = 'TABLE '.(count($result) + 1);
Expand Down
4 changes: 2 additions & 2 deletions libraries/rte/rte_routines.lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -984,7 +984,7 @@ function PMA_RTN_getEditorForm($mode, $operation, $routine)
*/
function PMA_RTN_getQueryFromRequest()
{
global $_REQUEST, $cfg, $errors, $param_sqldataaccess, $param_directions;
global $_REQUEST, $errors, $param_sqldataaccess, $param_directions;

$_REQUEST['item_type'] = isset($_REQUEST['item_type']) ? $_REQUEST['item_type'] : '';
$column_types = $GLOBALS['PMA_Types']->getColumns();
Expand Down Expand Up @@ -1134,7 +1134,7 @@ function PMA_RTN_getQueryFromRequest()
*/
function PMA_RTN_handleExecute()
{
global $_GET, $_POST, $_REQUEST, $GLOBALS, $db, $cfg;
global $_GET, $_POST, $_REQUEST, $GLOBALS, $db;

/**
* Handle all user requests other than the default of listing routines
Expand Down
2 changes: 1 addition & 1 deletion libraries/transformations/text_plain__external.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ function PMA_transformation_text_plain__external($buffer, $options = array(), $m
}
fclose($pipes[1]);
// we don't currently use the return value
$return_value = proc_close($process);
proc_close($process);
}

if ($options[2] == 1 || $options[2] == '2') {
Expand Down

0 comments on commit 3bfee1e

Please sign in to comment.