Remove some unused local variables.
authorSiebrand Mazeland <s.mazeland@xs4all.nl>
Mon, 8 Oct 2012 00:05:49 +0000 (02:05 +0200)
committerSiebrand Mazeland <s.mazeland@xs4all.nl>
Mon, 8 Oct 2012 00:05:49 +0000 (02:05 +0200)
Also add a FIXME for a weird case.

Change-Id: I1f7f8a522fc49be85051a467455796c3f564584b

includes/ZipDirectoryReader.php
includes/upload/UploadFromChunks.php
maintenance/backupTextPass.inc
maintenance/protect.php

index 0e84583..3a7c27a 100644 (file)
@@ -622,7 +622,6 @@ class ZipDirectoryReader {
                        } else {
                                // Unsigned little-endian integer
                                $length = intval( $type );
-                               $bytes = substr( $string, $pos, $length );
 
                                // Calculate the value. Use an algorithm which automatically
                                // upgrades the value to floating point if necessary.
index 0542bba..b0e5fb6 100644 (file)
@@ -76,7 +76,7 @@ class UploadFromChunks extends UploadFromFile {
                $this->mFileKey = $this->mLocalFile->getFileKey();
 
                // Output a copy of this first to chunk 0 location:
-               $status = $this->outputChunk( $this->mLocalFile->getPath() );
+               $this->outputChunk( $this->mLocalFile->getPath() );
 
                // Update db table to reflect initial "chunk" state
                $this->updateChunkStatus();
index f1f0954..81e61b7 100644 (file)
@@ -169,7 +169,7 @@ class TextPassDumper extends BackupDumper {
                $this->xmlwriterobj = new XmlDumpWriter();
 
                $input = fopen( $this->input, "rt" );
-               $result = $this->readDump( $input );
+               $this->readDump( $input );
 
                if ( $this->spawnProc ) {
                        $this->closeSpawn();
index 2f6aa1a..ff13bd6 100644 (file)
@@ -58,6 +58,7 @@ class Protect extends Maintenance {
                        $this->error( "Invalid username", true );
                }
 
+               // @todo FIXME: This is reset 7 lines down.
                $restrictions = array( 'edit' => $protection, 'move' => $protection );
 
                $t = Title::newFromText( $this->getArg() );