From f8a58fa67efade327656d6c62abfd8ea7b32a7cd Mon Sep 17 00:00:00 2001 From: Reedy Date: Sat, 20 Feb 2016 20:22:56 +0000 Subject: [PATCH] Remove some unused variables Change-Id: Ia3a290555f06c564c063591710380367a04cb1cc --- includes/api/ApiMergeHistory.php | 1 - includes/api/ApiQueryMyStashedFiles.php | 1 - includes/api/ApiQueryPageProps.php | 1 - 3 files changed, 3 deletions(-) diff --git a/includes/api/ApiMergeHistory.php b/includes/api/ApiMergeHistory.php index 72847ea55e..276f1c0ebe 100644 --- a/includes/api/ApiMergeHistory.php +++ b/includes/api/ApiMergeHistory.php @@ -33,7 +33,6 @@ class ApiMergeHistory extends ApiBase { public function execute() { $this->useTransactionalTimeLimit(); - $user = $this->getUser(); $params = $this->extractRequestParams(); $this->requireOnlyOneParameter( $params, 'from', 'fromid' ); diff --git a/includes/api/ApiQueryMyStashedFiles.php b/includes/api/ApiQueryMyStashedFiles.php index e609e2decc..9be5849d34 100644 --- a/includes/api/ApiQueryMyStashedFiles.php +++ b/includes/api/ApiQueryMyStashedFiles.php @@ -42,7 +42,6 @@ class ApiQueryMyStashedFiles extends ApiQueryBase { // Note: If user is logged in but cannot upload, they can still see // the list of stashed uploads...but it will probably be empty. - $db = $this->getDB(); $params = $this->extractRequestParams(); $this->addTables( 'uploadstash' ); diff --git a/includes/api/ApiQueryPageProps.php b/includes/api/ApiQueryPageProps.php index b7d90d87c7..de1df34770 100644 --- a/includes/api/ApiQueryPageProps.php +++ b/includes/api/ApiQueryPageProps.php @@ -60,7 +60,6 @@ class ApiQueryPageProps extends ApiQueryBase { } $pageProps = PageProps::getInstance(); - $props = []; $result = $this->getResult(); if ( $this->params['prop'] ) { $propnames = $this->params['prop']; -- 2.20.1