Delete unused variable and method
This commit is contained in:
parent
b317fe156a
commit
a2f0806804
|
@ -581,16 +581,6 @@ if (!defined("DRIVER")) {
|
||||||
return h(preg_replace('~^You have an error.*syntax to use~U', "Syntax error", $connection->error));
|
return h(preg_replace('~^You have an error.*syntax to use~U', "Syntax error", $connection->error));
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Get line of error
|
|
||||||
* @return int 0 for first line
|
|
||||||
*/
|
|
||||||
function error_line() {
|
|
||||||
global $connection;
|
|
||||||
if (preg_match('~ at line ([0-9]+)$~', $connection->error, $regs)) {
|
|
||||||
return $regs[1] - 1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Create database
|
/** Create database
|
||||||
* @param string
|
* @param string
|
||||||
* @param string
|
* @param string
|
||||||
|
|
|
@ -55,7 +55,6 @@ if (!$error && $_POST) {
|
||||||
}
|
}
|
||||||
$commands = 0;
|
$commands = 0;
|
||||||
$errors = array();
|
$errors = array();
|
||||||
$line = 0;
|
|
||||||
$parse = '[\'"' . ($jush == "sql" ? '`#' : ($jush == "sqlite" ? '`[' : ($jush == "mssql" ? '[' : ''))) . ']|/\\*|-- |$' . ($jush == "pgsql" ? '|\\$[^$]*\\$' : '');
|
$parse = '[\'"' . ($jush == "sql" ? '`#' : ($jush == "sqlite" ? '`[' : ($jush == "mssql" ? '[' : ''))) . ']|/\\*|-- |$' . ($jush == "pgsql" ? '|\\$[^$]*\\$' : '');
|
||||||
$total_start = microtime(true);
|
$total_start = microtime(true);
|
||||||
parse_str($_COOKIE["adminer_export"], $adminer_export);
|
parse_str($_COOKIE["adminer_export"], $adminer_export);
|
||||||
|
@ -161,7 +160,6 @@ if (!$error && $_POST) {
|
||||||
$start = microtime(true);
|
$start = microtime(true);
|
||||||
} while ($connection->next_result());
|
} while ($connection->next_result());
|
||||||
|
|
||||||
$line += substr_count($q.$found, "\n");
|
|
||||||
$query = substr($query, $offset);
|
$query = substr($query, $offset);
|
||||||
$offset = 0;
|
$offset = 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue