Siebrand has uploaded a new change for review.
https://gerrit.wikimedia.org/r/275754
Change subject: Remove unused local variables in API
......................................................................
Remove unused local variables in API
Change-Id: Ia94ae232308ad47ee88dbd30675cfcbdb6b371ed
---
M includes/api/ApiLogin.php
M includes/api/ApiQueryBacklinksprop.php
2 files changed, 0 insertions(+), 6 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core
refs/changes/54/275754/1
diff --git a/includes/api/ApiLogin.php b/includes/api/ApiLogin.php
index a6e6c49..02aae06 100644
--- a/includes/api/ApiLogin.php
+++ b/includes/api/ApiLogin.php
@@ -208,7 +208,6 @@
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 17b51da..1668221 100644
--- a/includes/api/ApiQueryBacklinksprop.php
+++ b/includes/api/ApiQueryBacklinksprop.php
@@ -164,21 +164,16 @@
$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 );
--
To view, visit https://gerrit.wikimedia.org/r/275754
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia94ae232308ad47ee88dbd30675cfcbdb6b371ed
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Siebrand <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits