From cc218ccc8f55105cc46a4c150c493a4ff7b653f2 Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Fri, 13 Aug 2010 11:43:01 +0000 Subject: [PATCH] Remove some more unused variables --- includes/HTMLForm.php | 2 -- includes/Preferences.php | 1 - includes/RevisionDelete.php | 1 - includes/db/DatabaseIbm_db2.php | 2 +- languages/LanguageConverter.php | 1 - 5 files changed, 1 insertion(+), 6 deletions(-) diff --git a/includes/HTMLForm.php b/includes/HTMLForm.php index cbd73a4610..9e8e82fb3d 100644 --- a/includes/HTMLForm.php +++ b/includes/HTMLForm.php @@ -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'] ) ) { diff --git a/includes/Preferences.php b/includes/Preferences.php index cbef6f4147..e8a574b796 100644 --- a/includes/Preferences.php +++ b/includes/Preferences.php @@ -1060,7 +1060,6 @@ class Preferences { $wgDefaultUserOptions['date'] = 'default'; } - $idCnt = 0; $epoch = wfTimestampNow(); foreach ( $dateopts as $key ) { if ( $key == 'default' ) { diff --git a/includes/RevisionDelete.php b/includes/RevisionDelete.php index 347607220e..a4523e071d 100644 --- a/includes/RevisionDelete.php +++ b/includes/RevisionDelete.php @@ -1163,7 +1163,6 @@ class RevDel_FileItem extends RevDel_Item { return '' . $link . ''; } else { # Regular files... - $url = $this->file->getUrl(); return Xml::element( 'a', array( 'href' => $this->file->getUrl() ), $date ); } } diff --git a/includes/db/DatabaseIbm_db2.php b/includes/db/DatabaseIbm_db2.php index f74721ab68..3987df8efc 100644 --- a/includes/db/DatabaseIbm_db2.php +++ b/includes/db/DatabaseIbm_db2.php @@ -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); diff --git a/languages/LanguageConverter.php b/languages/LanguageConverter.php index e0081de661..28f125fb14 100644 --- a/languages/LanguageConverter.php +++ b/languages/LanguageConverter.php @@ -1113,7 +1113,6 @@ class ConverterRule { */ function parseRules() { $rules = $this->mRules; - $flags = $this->mFlags; $bidtable = array(); $unidtable = array(); $variants = $this->mConverter->mVariants; -- 2.20.1