API: Remove unused asignment to $titleProvided in ApiExpandTemplates
authorFomafix <fomafix@googlemail.com>
Fri, 30 Aug 2019 19:10:30 +0000 (21:10 +0200)
committerKrinkle <krinklemail@gmail.com>
Sun, 8 Sep 2019 03:46:13 +0000 (03:46 +0000)
The variable $titleProvided is not used in the following code.

Change-Id: I879ecfb589616882ba7193943f843f9226277f3e

includes/api/ApiExpandTemplates.php

index a5e7437..4b74a3d 100644 (file)
@@ -76,10 +76,6 @@ class ApiExpandTemplates extends ApiBase {
                                        $this->addWarning( [ 'apierror-revwrongpage', $rev->getId(),
                                                wfEscapeWikiText( $pTitleObj->getPrefixedText() ) ] );
                                }
-                       } else {
-                               // Consider the title derived from the revid as having
-                               // been provided.
-                               $titleProvided = true;
                        }
                }