Remove unused local variables
authorSiebrand Mazeland <s.mazeland@xs4all.nl>
Mon, 1 Apr 2013 17:04:44 +0000 (19:04 +0200)
committerSiebrand <siebrand@wikimedia.org>
Mon, 1 Apr 2013 17:42:01 +0000 (17:42 +0000)
Change-Id: I8eb774c2857dcc87404fd8a7e5fb66c5a4c9643e

includes/api/ApiCreateAccount.php
includes/api/ApiImageRotate.php
includes/api/ApiQuery.php

index 55c60cc..a521346 100644 (file)
@@ -43,8 +43,6 @@ class ApiCreateAccount extends ApiBase {
 
                $params = $this->extractRequestParams();
 
-               $result = array();
-
                // Init session if necessary
                if ( session_id() == '' ) {
                        wfSetupSession();
index ebdbedd..5aa41ea 100644 (file)
@@ -53,16 +53,13 @@ class ApiImageRotate extends ApiBase {
                }
        }
 
-
        public function execute() {
                $params = $this->extractRequestParams();
                $rotation = $params['rotation'];
-               $user = $this->getUser();
 
                $pageSet = $this->getPageSet();
                $pageSet->execute();
 
-               $result = array();
                $result = array();
 
                self::addValues( $result, $pageSet->getInvalidTitles(), 'invalid', 'title' );
@@ -181,7 +178,6 @@ class ApiImageRotate extends ApiBase {
        }
 
        public function getAllowedParams( $flags = 0 ) {
-               $pageSet = $this->getPageSet();
                $result = array(
                        'rotation' => array(
                                ApiBase::PARAM_TYPE => array( '90', '180', '270' ),
index 7c64996..02c1b27 100644 (file)
@@ -382,7 +382,6 @@ class ApiQuery extends ApiBase {
                $modules = $allModules;
                $tmp = $completeModules;
                $wasPosted = $this->getRequest()->wasPosted();
-               $main = $this->getMain();
 
                /** @var $module ApiQueryBase */
                foreach ( $allModules as $moduleName => $module ) {