Drop LinkCache->addLink(), deprecated in 1.27 and unused
authorJames D. Forrester <jforrester@wikimedia.org>
Sat, 9 Feb 2019 01:34:49 +0000 (17:34 -0800)
committerReedy <reedy@wikimedia.org>
Sat, 9 Feb 2019 07:49:09 +0000 (07:49 +0000)
Change-Id: Id6395cc9a122375349b7a13c051049bca3f5ab08

RELEASE-NOTES-1.33
includes/cache/LinkCache.php

index eb55a88..ee4f215 100644 (file)
@@ -215,6 +215,8 @@ because of Phabricator reports.
   version in DummyLinker). You can use TemplatesOnThisPageFormatter directly.
 * EventRelayerGroup::singleton(), deprecated in 1.27, has been removed. You can
   use MediaWikiServices::getInstance()->getEventRelayerGroup() directly.
+* LinkCache->addLink(), deprecated in 1.27, has been removed. It is thought to
+  be unused, and is distinct from OutputPage->addLink(), which remains.
 
 === Deprecations in 1.33 ===
 * The configuration option $wgUseESI has been deprecated, and is expected
index b9944a8..b3dc004 100644 (file)
@@ -189,22 +189,6 @@ class LinkCache {
                $this->goodLinks->clear( $dbkey );
        }
 
-       /**
-        * Add a title to the link cache, return the page_id or zero if non-existent
-        *
-        * @deprecated since 1.27, unused
-        * @param string $title Prefixed DB key
-        * @return int Page ID or zero
-        */
-       public function addLink( $title ) {
-               wfDeprecated( __METHOD__, '1.27' );
-               $nt = Title::newFromDBkey( $title );
-               if ( !$nt ) {
-                       return 0;
-               }
-               return $this->addLinkObj( $nt );
-       }
-
        /**
         * Fields that LinkCache needs to select
         *