From f43760aaeeaadd2b1879bce7d38df6196b91c2ec Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Sun, 24 Jun 2012 06:53:56 -0400 Subject: [PATCH] Unused code --- libraries/Table.class.php | 43 --------------------------------------- 1 file changed, 43 deletions(-) diff --git a/libraries/Table.class.php b/libraries/Table.class.php index 45bea6e337..f738395fa5 100644 --- a/libraries/Table.class.php +++ b/libraries/Table.class.php @@ -237,49 +237,6 @@ class PMA_Table return null; } - /** - * loads structure data - * (this function is work in progress? not yet used) - * - * @return boolean - */ - function loadStructure() - { - $table_info = PMA_DBI_get_tables_full( - $this->getDbName(), - $this->getName() - ); - - if (false === $table_info) { - return false; - } - - $this->settings = $table_info; - - if ($this->get('TABLE_ROWS') === null) { - $this->set( - 'TABLE_ROWS', - PMA_Table::countRecords( - $this->getDbName(), - $this->getName(), - true - ) - ); - } - - $create_options = explode(' ', $this->get('TABLE_ROWS')); - - // export create options by its name as variables into global namespace - // f.e. pack_keys=1 becomes available as $pack_keys with value of '1' - foreach ($create_options as $each_create_option) { - $each_create_option = explode('=', $each_create_option); - if (isset($each_create_option[1])) { - $this->set($$each_create_option[0], $each_create_option[1]); - } - } - return true; - } - /** * Checks if this is a merge table *