From 94afc567d67e3f49b1686cc445a3cff7ed92cf08 Mon Sep 17 00:00:00 2001 From: Siebrand Mazeland Date: Tue, 8 Mar 2016 08:03:49 +0100 Subject: Remove unused local variables in API Change-Id: Ia94ae232308ad47ee88dbd30675cfcbdb6b371ed --- includes/api/ApiQueryBacklinksprop.php | 8 -------- 1 file changed, 8 deletions(-) (limited to 'includes/api/ApiQueryBacklinksprop.php') diff --git a/includes/api/ApiQueryBacklinksprop.php b/includes/api/ApiQueryBacklinksprop.php index 17b51da43208..5b55332e1193 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; -- cgit v1.2.3