]> git.joonet.de Git - adminer.git/commitdiff
Delete unused functions
authorJakub Vrana <jakub@vrana.cz>
Wed, 26 Feb 2025 15:31:20 +0000 (16:31 +0100)
committerJakub Vrana <jakub@vrana.cz>
Wed, 26 Feb 2025 15:48:02 +0000 (16:48 +0100)
adminer/drivers/mssql.inc.php
adminer/drivers/mysql.inc.php
adminer/drivers/pgsql.inc.php
adminer/drivers/sqlite.inc.php
compile.php
plugins/drivers/clickhouse.php
plugins/drivers/elastic.php
plugins/drivers/firebird.php
plugins/drivers/simpledb.php

index e01fe3bbe47e310027c87e342df5d0dbabf3a404..bd176102608e694fccef30217fa166a7eefbe25c 100644 (file)
@@ -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) {
        }
 
index 2538482515810ee0b8cc20041a427581fe93e29b..47ba442fc70b114e117e456da91e2d1e37f7159c 100644 (file)
@@ -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
index 001f241e35503d47cf2bc9d8289a1911dde2a2a0..069d3f855189893ab3965ad2e3e80d7088eaab33 100644 (file)
@@ -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) {
        }
 
index ec97e4f0e572781ca27ba5ab7eca43891080dd72..efe267b8bbdc280f1a79ea457198fa76dd83067c 100644 (file)
@@ -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));
index ca9a8f54a2c647e86b9e0bd2075e581de4be0b9e..bd897ea03a03f8adfe61c19f67546d2a82b0a8eb 100755 (executable)
@@ -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"),
index 5b2d615c006d698e0edc0003806f11ed13064d4f..aa9d178c5c8e245eb33f789882c4420025db3c03 100644 (file)
@@ -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 '';
        }
index f6d7892f63ab3cd7901c83fe21d8225cbf24dd99..b889fa2976d6190c59c898a7ed66d336dccf30ca 100644 (file)
@@ -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
index 34f92d2f78e0ad6dd04c2795c73e5dff7ff50132..31e93fb9d0fda632e48bc4710aae65bf5607c963 100644 (file)
@@ -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);
        }
index ae39413229555d2be1afbe2976276ea168a22609..cfbfc7debc8d8c7c888dd8f8eb2233cb97f73e5c 100644 (file)
@@ -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()")),