From a72cc6afbc0c614e11e92ead41acd2dc88c03d95 Mon Sep 17 00:00:00 2001 From: Siebrand Mazeland Date: Mon, 1 Apr 2013 19:04:44 +0200 Subject: [PATCH] Remove unused local variables Change-Id: I8eb774c2857dcc87404fd8a7e5fb66c5a4c9643e --- includes/api/ApiCreateAccount.php | 2 -- includes/api/ApiImageRotate.php | 4 ---- includes/api/ApiQuery.php | 1 - 3 files changed, 7 deletions(-) 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 ) { -- 2.20.1