Remove some unused variables
authorReedy <reedy@wikimedia.org>
Sat, 20 Feb 2016 20:22:56 +0000 (20:22 +0000)
committerReedy <reedy@wikimedia.org>
Sat, 20 Feb 2016 20:22:56 +0000 (20:22 +0000)
Change-Id: Ia3a290555f06c564c063591710380367a04cb1cc

includes/api/ApiMergeHistory.php
includes/api/ApiQueryMyStashedFiles.php
includes/api/ApiQueryPageProps.php

index 72847ea..276f1c0 100644 (file)
@@ -33,7 +33,6 @@ class ApiMergeHistory extends ApiBase {
        public function execute() {
                $this->useTransactionalTimeLimit();
 
-               $user = $this->getUser();
                $params = $this->extractRequestParams();
 
                $this->requireOnlyOneParameter( $params, 'from', 'fromid' );
index e609e2d..9be5849 100644 (file)
@@ -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' );
index b7d90d8..de1df34 100644 (file)
@@ -60,7 +60,6 @@ class ApiQueryPageProps extends ApiQueryBase {
                }
 
                $pageProps = PageProps::getInstance();
-               $props = [];
                $result = $this->getResult();
                if ( $this->params['prop'] ) {
                        $propnames = $this->params['prop'];