From 8833d806971ab0edbb6dcff5bafd8277a78f1d40 Mon Sep 17 00:00:00 2001 From: Madhura Jayaratne Date: Fri, 30 Oct 2015 18:52:15 +1100 Subject: [PATCH] Remove dead code. Already handled in addRemoveFavoriteTablesAction() Signed-off-by: Madhura Jayaratne --- .../DatabaseStructureController.php | 22 ------------------- 1 file changed, 22 deletions(-) diff --git a/libraries/controllers/DatabaseStructureController.php b/libraries/controllers/DatabaseStructureController.php index ed055906a2..2e69136cb8 100644 --- a/libraries/controllers/DatabaseStructureController.php +++ b/libraries/controllers/DatabaseStructureController.php @@ -628,29 +628,7 @@ class DatabaseStructureController extends DatabaseController ); } - // Handle favorite table list. ----START---- - $already_favorite = $this->checkFavoriteTable( - $current_table['TABLE_NAME'] - ); - - if (isset($_REQUEST['remove_favorite'])) { - if ($already_favorite) { - // If already in favorite list, remove it. - $favorite_table = $_REQUEST['favorite_table']; - $fav_instance->remove($this->db, $favorite_table); - } - } - - if (isset($_REQUEST['add_favorite'])) { - if (!$already_favorite) { - // Otherwise add to favorite list. - $favorite_table = $_REQUEST['favorite_table']; - $fav_instance->add($this->db, $favorite_table); - } - } // Handle favorite table list. ----ENDS---- - $show_superscript = ''; - // there is a null value in the ENGINE // - when the table needs to be repaired, or // - when it's a view