Remove unreachable line in DifferenceEngine
authorSam Reed <reedy@users.mediawiki.org>
Fri, 18 Feb 2011 01:06:04 +0000 (01:06 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Fri, 18 Feb 2011 01:06:04 +0000 (01:06 +0000)
Documentation for ObjectCache.php

Remove unused variables from CompareParsers and PreprocessDump

includes/ObjectCache.php
includes/Skin.php
includes/SkinTemplate.php
includes/diff/DifferenceEngine.php
maintenance/compareParsers.php
maintenance/preprocessDump.php

index db22c07..6824d21 100644 (file)
@@ -36,7 +36,9 @@ $wgCaches = array();
 
 /**
  * Get a cache object.
- * @param $inputType Integer: cache type, one the the CACHE_* constants. 
+ * @param $inputType Integer: cache type, one the the CACHE_* constants.
+ *
+ * @return BagOStuff
  */
 function &wfGetCache( $inputType ) {
        global $wgCaches, $wgMemCachedServers, $wgMemCachedDebug, $wgMemCachedPersistent;
index 57e535f..f3e5669 100644 (file)
@@ -23,7 +23,10 @@ abstract class Skin extends Linker {
        /**#@-*/
        protected $mRevisionId; // The revision ID we're looking at, null if not applicable.
        protected $skinname = 'standard';
-       // @todo Fixme: should be protected :-\
+       /**
+        * todo Fixme: should be protected :-\
+        * @var Title
+        */
        var $mTitle = null;
        protected $mRelevantTitle = null;
        protected $mRelevantUser = null;
@@ -1586,7 +1589,7 @@ abstract class Skin extends Linker {
                        $namespaceNotice = '';
                }
 
-               wfProfileOut( $fname );
+               wfProfileOut( __METHOD__ );
                return $namespaceNotice;
        }
 
index 0c5e9d3..6417784 100644 (file)
@@ -1091,7 +1091,7 @@ class SkinTemplate extends Skin {
                
                $content_actions = array();
                
-               foreach ( $content_navigation as $section => $links ) {
+               foreach ( $content_navigation as $links ) {
                        
                        foreach ( $links as $key => $value ) {
                                
index d73735d..63bcfb6 100644 (file)
@@ -770,7 +770,6 @@ CONTROL;
                $difftext = $wgContLang->unsegmentForDiff( $formatter->format( $diffs ) ) .
                wfProfileOut( __METHOD__ );
                return $difftext;
-               $this->debug();
        }
 
        /**
index 069e55e..7e60071 100644 (file)
@@ -32,7 +32,7 @@ require_once( dirname( __FILE__ ) . '/Maintenance.php' );
 class CompareParsers extends Maintenance {
 
        private $count = 0;
-       private $outputDirectory, $startTime;
+       private $startTime;
 
        public function __construct() {
                parent::__construct();
index 0db5932..b52d288 100644 (file)
@@ -30,7 +30,7 @@ require_once( dirname( __FILE__ ) . '/Maintenance.php' );
 class PreprocessDump extends Maintenance {
 
        private $count = 0;
-       private $outputDirectory, $startTime;
+       private $startTime;
 
        /* Variables for dressing up as a parser */
        public $mTitle = 'PreprocessDump';