Remove unused code

Signed-off-by: Michal Čihař <michal@cihar.com>
This commit is contained in:
Michal Čihař 2017-06-02 17:45:50 +02:00
parent 1cc39df414
commit 84309d62bd
2 changed files with 0 additions and 38 deletions

View File

@ -116,25 +116,6 @@ class TableChartController extends TableController
$url_params['back'] = 'tbl_sql.php';
include 'libraries/tbl_common.inc.php';
$GLOBALS['dbi']->selectDb($GLOBALS['db']);
$table_class_object = $GLOBALS['dbi']->getTable(
$GLOBALS['db'],
$GLOBALS['table']
);
$GLOBALS['showtable'] = $table_class_object->getStatusInfo(null, true);
if ($table_class_object->isView()) {
$tbl_is_view = true;
$tbl_storage_engine = __('View');
$show_comment = null;
} else {
$tbl_is_view = false;
$tbl_storage_engine = $table_class_object->getStorageEngine();
$show_comment = $table_class_object->getComment();
}
$tbl_collation = $table_class_object->getCollation();
$table_info_num_rows = $table_class_object->getNumRows();
$row_format = $table_class_object->getRowFormat();
$auto_increment = $table_class_object->getAutoIncrement();
$create_options = $table_class_object->getCreateOptions();
} elseif (strlen($this->db) > 0) {
$url_params['goto'] = Util::getScriptNameForOption(
$this->cfg['DefaultTabDatabase'], 'database'

View File

@ -64,25 +64,6 @@ class TableIndexesController extends TableController
public function displayFormAction()
{
$GLOBALS['dbi']->selectDb($GLOBALS['db']);
$table_class_object = $GLOBALS['dbi']->getTable(
$GLOBALS['db'],
$GLOBALS['table']
);
$GLOBALS['showtable'] = $table_class_object->getStatusInfo(null, true);
if ($table_class_object->isView()) {
$tbl_is_view = true;
$tbl_storage_engine = __('View');
$show_comment = null;
} else {
$tbl_is_view = false;
$tbl_storage_engine = $table_class_object->getStorageEngine();
$show_comment = $table_class_object->getComment();
}
$tbl_collation = $table_class_object->getCollation();
$table_info_num_rows = $table_class_object->getNumRows();
$row_format = $table_class_object->getRowFormat();
$auto_increment = $table_class_object->getAutoIncrement();
$create_options = $table_class_object->getCreateOptions();
$add_fields = 0;
if (isset($_REQUEST['index']) && is_array($_REQUEST['index'])) {
// coming already from form