From 11cc7fab49931bd87d385e252cc63895a9ea3b94 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Wed, 14 May 2014 09:12:45 +0200 Subject: [PATCH] Remove unused variables from SpecialAllpages::showToplevel() Follow-up If750cad676 (71fe7c5) Change-Id: I95bf953b0eb742e94ddff1b6adf6d784fb5dc87c --- includes/specials/SpecialAllpages.php | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/includes/specials/SpecialAllpages.php b/includes/specials/SpecialAllpages.php index e4fc54b97d..ad92298cf5 100644 --- a/includes/specials/SpecialAllpages.php +++ b/includes/specials/SpecialAllpages.php @@ -156,32 +156,11 @@ class SpecialAllpages extends IncludableSpecialPage { * @param bool $hideredirects Dont show redirects (default false) */ function showToplevel( $namespace = NS_MAIN, $from = '', $to = '', $hideredirects = false ) { - $output = $this->getOutput(); - - # TODO: Either make this *much* faster or cache the title index points - # in the querycache table. - - $dbr = wfGetDB( DB_SLAVE ); - $out = ""; - $where = array( 'page_namespace' => $namespace ); - - if ( $hideredirects ) { - $where['page_is_redirect'] = 0; - } - $from = Title::makeTitleSafe( $namespace, $from ); $to = Title::makeTitleSafe( $namespace, $to ); $from = ( $from && $from->isLocal() ) ? $from->getDBkey() : null; $to = ( $to && $to->isLocal() ) ? $to->getDBkey() : null; - if ( isset( $from ) ) { - $where[] = 'page_title >= ' . $dbr->addQuotes( $from ); - } - - if ( isset( $to ) ) { - $where[] = 'page_title <= ' . $dbr->addQuotes( $to ); - } - $this->showChunk( $namespace, $from, $to, $hideredirects ); } -- 2.20.1