mirror of
https://github.com/vrana/adminer.git
synced 2025-08-10 16:44:17 +02:00
Delete unused functions
This commit is contained in:
@@ -611,14 +611,6 @@ WHERE sys1.xtype = 'TR' AND sys2.name = " . q($table)
|
||||
return $return;
|
||||
}
|
||||
|
||||
function show_variables() {
|
||||
return array();
|
||||
}
|
||||
|
||||
function show_status() {
|
||||
return array();
|
||||
}
|
||||
|
||||
function convert_field($field) {
|
||||
}
|
||||
|
||||
|
@@ -999,23 +999,21 @@ if (!defined("DRIVER")) {
|
||||
return ($where || $table_status["Engine"] != "InnoDB" ? null : $table_status["Rows"]);
|
||||
}
|
||||
|
||||
/* Not used is MySQL but checked in compile.php:
|
||||
/** Get user defined types
|
||||
* @return array
|
||||
*/
|
||||
function types() {
|
||||
return array();
|
||||
}
|
||||
|
||||
/** Get existing schemas
|
||||
* @return array
|
||||
*/
|
||||
function schemas() {
|
||||
return array();
|
||||
}
|
||||
|
||||
/** Get current schema
|
||||
* @return string
|
||||
*/
|
||||
function get_schema() {
|
||||
return "";
|
||||
}
|
||||
@@ -1024,10 +1022,10 @@ if (!defined("DRIVER")) {
|
||||
* @param string
|
||||
* @param Min_DB
|
||||
* @return bool
|
||||
*/
|
||||
function set_schema($schema, $connection2 = null) {
|
||||
return true;
|
||||
}
|
||||
*/
|
||||
|
||||
/** Get SQL command to create table
|
||||
* @param string
|
||||
|
@@ -882,9 +882,6 @@ AND typelem = 0"
|
||||
return get_rows("SELECT * FROM pg_stat_activity ORDER BY " . (min_version(9.2) ? "pid" : "procpid"));
|
||||
}
|
||||
|
||||
function show_status() {
|
||||
}
|
||||
|
||||
function convert_field($field) {
|
||||
}
|
||||
|
||||
|
@@ -656,18 +656,6 @@ if (isset($_GET["sqlite"])) {
|
||||
return array();
|
||||
}
|
||||
|
||||
function schemas() {
|
||||
return array();
|
||||
}
|
||||
|
||||
function get_schema() {
|
||||
return "";
|
||||
}
|
||||
|
||||
function set_schema($scheme) {
|
||||
return true;
|
||||
}
|
||||
|
||||
function create_sql($table, $auto_increment, $style) {
|
||||
global $connection;
|
||||
$return = $connection->result("SELECT sql FROM sqlite_master WHERE type IN ('table', 'view') AND name = " . q($table));
|
||||
|
@@ -70,13 +70,12 @@ header("Cache-Control: immutable");
|
||||
"copy" => array("copy_tables"),
|
||||
"database" => array("create_database", "rename_database", "drop_databases"),
|
||||
"dump" => array("use_sql", "create_sql", "truncate_sql", "trigger_sql"),
|
||||
"indexes" => array("indexes"),
|
||||
"kill" => array("kill_process", "connection_id", "max_connections"),
|
||||
"processlist" => array("process_list"),
|
||||
"routine" => array("routines", "routine", "routine_languages", "create_routine", "routine_id"),
|
||||
"routine" => array("routines", "routine", "routine_languages", "routine_id"),
|
||||
"scheme" => array("schemas", "get_schema", "set_schema"),
|
||||
"status" => array("show_status"),
|
||||
"table" => array("search_tables", "is_view"),
|
||||
"table" => array("is_view"),
|
||||
"trigger" => array("triggers", "trigger", "trigger_options", "trigger_sql"),
|
||||
"type" => array("types"),
|
||||
"variables" => array("show_variables"),
|
||||
|
@@ -354,18 +354,6 @@ if (isset($_GET["clickhouse"])) {
|
||||
return array();
|
||||
}
|
||||
|
||||
function schemas() {
|
||||
return array();
|
||||
}
|
||||
|
||||
function get_schema() {
|
||||
return "";
|
||||
}
|
||||
|
||||
function set_schema($schema) {
|
||||
return true;
|
||||
}
|
||||
|
||||
function auto_increment() {
|
||||
return '';
|
||||
}
|
||||
|
@@ -503,22 +503,6 @@ if (isset($_GET["elastic"])) {
|
||||
return null;
|
||||
}
|
||||
|
||||
/** Create index
|
||||
* @param string
|
||||
* @return mixed
|
||||
*/
|
||||
function create_database($db) {
|
||||
return connection()->rootQuery(urlencode($db), null, 'PUT');
|
||||
}
|
||||
|
||||
/** Remove index
|
||||
* @param array
|
||||
* @return mixed
|
||||
*/
|
||||
function drop_databases($databases) {
|
||||
return connection()->rootQuery(urlencode(implode(',', $databases)), null, 'DELETE');
|
||||
}
|
||||
|
||||
/** Alter type
|
||||
* @param array
|
||||
* @return mixed
|
||||
|
@@ -295,18 +295,6 @@ ORDER BY RDB$INDEX_SEGMENTS.RDB$FIELD_POSITION';
|
||||
return array();
|
||||
}
|
||||
|
||||
function schemas() {
|
||||
return array();
|
||||
}
|
||||
|
||||
function get_schema() {
|
||||
return "";
|
||||
}
|
||||
|
||||
function set_schema($schema) {
|
||||
return true;
|
||||
}
|
||||
|
||||
function support($feature) {
|
||||
return preg_match("~^(columns|sql|status|table)$~", $feature);
|
||||
}
|
||||
|
@@ -327,9 +327,6 @@ if (isset($_GET["simpledb"])) {
|
||||
function information_schema() {
|
||||
}
|
||||
|
||||
function is_view($table_status) {
|
||||
}
|
||||
|
||||
function indexes($table, $connection2 = null) {
|
||||
return array(
|
||||
array("type" => "PRIMARY", "columns" => array("itemName()")),
|
||||
|
Reference in New Issue
Block a user