From: Siebrand Mazeland Date: Tue, 8 Mar 2016 07:03:49 +0000 (+0100) Subject: Remove unused local variables in API X-Git-Tag: 1.31.0-rc.0~7717^2 X-Git-Url: https://git.cyclocoop.org/admin/Duna?a=commitdiff_plain;h=94afc567d67e3f49b1686cc445a3cff7ed92cf08;p=lhc%2Fweb%2Fwiklou.git Remove unused local variables in API Change-Id: Ia94ae232308ad47ee88dbd30675cfcbdb6b371ed --- diff --git a/includes/api/ApiLogin.php b/includes/api/ApiLogin.php index a6e6c49d79..02aae06e80 100644 --- a/includes/api/ApiLogin.php +++ b/includes/api/ApiLogin.php @@ -208,7 +208,6 @@ class ApiLogin extends ApiBase { case LoginForm::THROTTLED: $result['result'] = 'Throttled'; - $throttle = $this->getConfig()->get( 'PasswordAttemptThrottle' ); $result['wait'] = intval( $loginForm->mThrottleWait ); break; diff --git a/includes/api/ApiQueryBacklinksprop.php b/includes/api/ApiQueryBacklinksprop.php index 17b51da432..5b55332e11 100644 --- a/includes/api/ApiQueryBacklinksprop.php +++ b/includes/api/ApiQueryBacklinksprop.php @@ -164,22 +164,14 @@ class ApiQueryBacklinksprop extends ApiQueryGeneratorBase { $this->dieContinueUsageIf( count( $cont ) != count( $sortby ) ); $where = ''; $i = count( $sortby ) - 1; - $cont_ns = 0; - $cont_title = ''; foreach ( array_reverse( $sortby, true ) as $field => $type ) { $v = $cont[$i]; switch ( $type ) { case 'ns': - $cont_ns = (int)$v; - /* fall through */ case 'int': $v = (int)$v; $this->dieContinueUsageIf( $v != $cont[$i] ); break; - - case 'title': - $cont_title = $v; - /* fall through */ default: $v = $db->addQuotes( $v ); break;