Remove some more unused variables
authorSam Reed <reedy@users.mediawiki.org>
Fri, 13 Aug 2010 11:43:01 +0000 (11:43 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Fri, 13 Aug 2010 11:43:01 +0000 (11:43 +0000)
includes/HTMLForm.php
includes/Preferences.php
includes/RevisionDelete.php
includes/db/DatabaseIbm_db2.php
languages/LanguageConverter.php

index cbd73a4..9e8e82f 100644 (file)
@@ -1086,8 +1086,6 @@ class HTMLFloatField extends HTMLTextField {
                        return wfMsgExt( 'htmlform-float-invalid', 'parse' );
                }
 
-               $in_range = true;
-
                # The "int" part of these message names is rather confusing.
                # They make equal sense for all numbers.
                if ( isset( $this->mParams['min'] ) ) {
index cbef6f4..e8a574b 100644 (file)
@@ -1060,7 +1060,6 @@ class Preferences {
                                $wgDefaultUserOptions['date'] = 'default';
                        }
 
-                       $idCnt = 0;
                        $epoch = wfTimestampNow();
                        foreach ( $dateopts as $key ) {
                                if ( $key == 'default' ) {
index 3476072..a4523e0 100644 (file)
@@ -1163,7 +1163,6 @@ class RevDel_FileItem extends RevDel_Item {
                        return '<span class="history-deleted">' . $link . '</span>';
                } else {
                        # Regular files...
-                       $url = $this->file->getUrl();
                        return Xml::element( 'a', array( 'href' => $this->file->getUrl() ), $date );
                }
        }
index f74721a..3987df8 100644 (file)
@@ -1122,7 +1122,7 @@ EOF;
                                $overhead = "SAVEPOINT $ignore ON ROLLBACK RETAIN CURSORS";
                                db2_exec($this->mConn, $overhead, $this->mStmtOptions);
                                
-                               $res2 = $this->execute($stmt, $row);
+                               $this->execute($stmt, $row);
                                // get the last inserted value into a generated column
                                $this->calcInsertId($table, $primaryKey, $stmt);
                                
index e0081de..28f125f 100644 (file)
@@ -1113,7 +1113,6 @@ class ConverterRule {
         */
        function parseRules() {
                $rules = $this->mRules;
-               $flags = $this->mFlags;
                $bidtable = array();
                $unidtable = array();
                $variants = $this->mConverter->mVariants;