From 5ca2afd63221de3e2d47906f212f8e019adfe00c Mon Sep 17 00:00:00 2001 From: Hugues Peccatte Date: Mon, 21 Apr 2014 16:38:59 +0200 Subject: [PATCH] Remove useless comments. Signed-off-by: Hugues Peccatte --- libraries/navigation/Nodes/Node.class.php | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/libraries/navigation/Nodes/Node.class.php b/libraries/navigation/Nodes/Node.class.php index 2cfe8bc90a..4170f4ed1b 100644 --- a/libraries/navigation/Nodes/Node.class.php +++ b/libraries/navigation/Nodes/Node.class.php @@ -360,12 +360,6 @@ class Node */ public function getData($type, $pos, $searchClause = '') { - /*$query = "SELECT `SCHEMA_NAME` "; - $query .= "FROM `INFORMATION_SCHEMA`.`SCHEMATA` "; - $query .= $this->_getWhereClause($searchClause); - $query .= "ORDER BY `SCHEMA_NAME` ASC "; - $query .= "LIMIT $pos, {$GLOBALS['cfg']['MaxNavigationItems']}";*/ - $query = "SELECT `SCHEMA_NAME` "; $query .= "FROM `INFORMATION_SCHEMA`.`SCHEMATA`, "; $query .= " ("; @@ -385,23 +379,6 @@ class Node $query .= "concat(SCHEMA_NAME, "; $query .= "'{$GLOBALS['cfg']['NavigationTreeDbSeparator']}')) "; $query .= "order by SCHEMA_NAME ASC"; - /*echo $query; - - SELECT `SCHEMA_NAME` - FROM `INFORMATION_SCHEMA`.`SCHEMATA`, - ( - select DB_first_level - from ( - SELECT distinct SUBSTRING_INDEX(SCHEMA_NAME, '_', 1) DB_first_level - FROM INFORMATION_SCHEMA.SCHEMATA - WHERE TRUE - ) t - ORDER BY DB_first_level ASC - LIMIT 0, 5 - ) t2 - where 1 = locate(concat(DB_first_level, '_'), concat(SCHEMA_NAME, '_')) - order by SCHEMA_NAME ASC - */ return $GLOBALS['dbi']->fetchResult($query); }