From: Siebrand Mazeland Date: Mon, 1 Apr 2013 17:04:44 +0000 (+0200) Subject: Remove unused local variables X-Git-Tag: 1.31.0-rc.0~20152^2 X-Git-Url: http://git.cyclocoop.org/%24self?a=commitdiff_plain;h=a72cc6afbc0c614e11e92ead41acd2dc88c03d95;p=lhc%2Fweb%2Fwiklou.git Remove unused local variables Change-Id: I8eb774c2857dcc87404fd8a7e5fb66c5a4c9643e --- diff --git a/includes/api/ApiCreateAccount.php b/includes/api/ApiCreateAccount.php index 55c60cce2e..a521346b4a 100644 --- a/includes/api/ApiCreateAccount.php +++ b/includes/api/ApiCreateAccount.php @@ -43,8 +43,6 @@ class ApiCreateAccount extends ApiBase { $params = $this->extractRequestParams(); - $result = array(); - // Init session if necessary if ( session_id() == '' ) { wfSetupSession(); diff --git a/includes/api/ApiImageRotate.php b/includes/api/ApiImageRotate.php index ebdbedd11b..5aa41eaed3 100644 --- a/includes/api/ApiImageRotate.php +++ b/includes/api/ApiImageRotate.php @@ -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' ), diff --git a/includes/api/ApiQuery.php b/includes/api/ApiQuery.php index 7c64996ea9..02c1b27fa3 100644 --- a/includes/api/ApiQuery.php +++ b/includes/api/ApiQuery.php @@ -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 ) {