More unused....
authorSam Reed <reedy@users.mediawiki.org>
Thu, 19 Aug 2010 11:42:06 +0000 (11:42 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Thu, 19 Aug 2010 11:42:06 +0000 (11:42 +0000)
includes/FileDeleteForm.php
includes/QueryPage.php
includes/db/DatabaseIbm_db2.php
includes/installer/WebInstaller.php
includes/parser/Parser_LinkHooks.php
maintenance/tests/UploadFromUrlTest.php
maintenance/updaters.inc

index be11821..ddbad63 100644 (file)
@@ -253,7 +253,6 @@ class FileDeleteForm {
        private function prepareMessage( $message ) {
                global $wgLang;
                if( $this->oldimage ) {
-                       $url = $this->file->getArchiveUrl( $this->oldimage );
                        return wfMsgExt(
                                "{$message}-old", # To ensure grep will find them: 'filedelete-intro-old', 'filedelete-nofile-old', 'filedelete-success-old'
                                'parse',
index 619c101..a0971fc 100644 (file)
@@ -228,8 +228,6 @@ class QueryPage {
                        return false;
                }
 
-               $querycache = $dbr->tableName( 'querycache' );
-
                if ( $ignoreErrors ) {
                        $ignoreW = $dbw->ignoreErrors( true );
                        $ignoreR = $dbr->ignoreErrors( true );
index c91dc86..f43c614 100644 (file)
@@ -1076,10 +1076,8 @@ EOF;
                // assume success
                $res = true;
                // If we are not in a transaction, we need to be for savepoint trickery
-               $didbegin = 0;
                if (! $this->mTrxLevel) {
                        $this->begin();
-                       $didbegin = 1;
                }
 
                $sql = "INSERT INTO $table (" . implode( ',', $keys ) . ') VALUES ';
index e3707ff..7eeded3 100644 (file)
@@ -80,7 +80,6 @@ class WebInstaller extends CoreInstaller {
         */
        public $showSessionWarning = false;
 
-       public $helpId = 0;
        public $tabIndex = 1;
 
        public $currentPageName;
@@ -607,7 +606,6 @@ class WebInstaller extends CoreInstaller {
                $args = func_get_args();
                array_shift( $args );
                $args = array_map( 'htmlspecialchars', $args );
-               
                $text = wfMsgReal( $msg, $args, false, false, false );
                $html = $this->parse( $text, true );
 
index 7d4b03f..48d702e 100644 (file)
@@ -135,13 +135,7 @@ class Parser_LinkHooks extends Parser
                        wfProfileOut( __METHOD__.'-setup' );
                        throw new MWException( __METHOD__.": \$this->mTitle is null\n" );
                }
-               $nottalk = !$this->mTitle->isTalkPage();
-               
-               if($wgContLang->hasVariants()) {
-                       $selflink = $wgContLang->convertLinkToAllVariants($this->mTitle->getPrefixedText());
-               } else {
-                       $selflink = array($this->mTitle->getPrefixedText());
-               }
+
                wfProfileOut( __METHOD__.'-setup' );
                
                $offset = 0;
index 1d870ef..6daf63d 100644 (file)
@@ -216,7 +216,7 @@ class UploadFromUrlTest extends ApiTestSetup {
                if ( $t->exists() ) {
                        $file = wfFindFile( $name, array( 'ignoreRedirect' => true ) );
                        $empty = "";
-                       $status = FileDeleteForm::doDelete( $t, $file, $empty, "none", true );
+                       FileDeleteForm::doDelete( $t, $file, $empty, "none", true );
                        $a = new Article ( $t );
                        $a->doDeleteArticle( "testing" );
                }
index e8ae4c3..56e7aea 100644 (file)
@@ -1212,7 +1212,6 @@ function do_postgres_updates() {
        global $wgDatabase, $wgDBmwschema, $wgDBts2schema, $wgDBuser;
 
        # # Gather version numbers in case we need them
-       $version = $wgDatabase->getServerVersion(); # # long string
        $numver = $wgDatabase->numeric_version; # # X.Y e.g. 8.3
 
        # Just in case their LocalSettings.php does not have this: