Delete unused variable
authorJakub Vrana <jakub@vrana.cz>
Sun, 2 Dec 2018 18:26:51 +0000 (19:26 +0100)
committerAddshore <addshorewiki@gmail.com>
Mon, 3 Dec 2018 16:43:43 +0000 (16:43 +0000)
Found by PHPStan.

Change-Id: If985b06fcc9e37b8747da69d1aac63a5ee944aef

includes/specials/pagers/NewPagesPager.php

index f16a5cb..b85bc2f 100644 (file)
@@ -59,8 +59,6 @@ class NewPagesPager extends ReverseChronologicalPager {
                        }
                }
 
-               $rcIndexes = [];
-
                if ( $namespace !== false ) {
                        if ( $this->opts->getValue( 'invert' ) ) {
                                $conds[] = 'rc_namespace != ' . $this->mDb->addQuotes( $namespace );
@@ -105,17 +103,11 @@ class NewPagesPager extends ReverseChronologicalPager {
                Hooks::run( 'SpecialNewpagesConditions',
                        [ &$pager, $this->opts, &$conds, &$tables, &$fields, &$join_conds ] );
 
-               $options = [];
-
-               if ( $rcIndexes ) {
-                       $options = [ 'USE INDEX' => [ 'recentchanges' => $rcIndexes ] ];
-               }
-
                $info = [
                        'tables' => $tables,
                        'fields' => $fields,
                        'conds' => $conds,
-                       'options' => $options,
+                       'options' => [],
                        'join_conds' => $join_conds
                ];