aboutsummaryrefslogtreecommitdiffstats
path: root/includes/cache/BacklinkCache.php
diff options
context:
space:
mode:
authorDerick Alangi <alangiderick@gmail.com>2023-08-10 13:56:51 +0100
committerDerick Alangi <alangiderick@gmail.com>2023-08-10 14:21:23 +0100
commit693b8c5987fce6c567a489491bb3b8d9abae7c4b (patch)
treec0007ab62cef8a9a2cd90152ac3f068266df8381 /includes/cache/BacklinkCache.php
parent091af46148179e5bba16c2e6108f14272c9081ab (diff)
downloadmediawikicore-693b8c5987fce6c567a489491bb3b8d9abae7c4b.tar.gz
mediawikicore-693b8c5987fce6c567a489491bb3b8d9abae7c4b.zip
cache: Remove deprecated methods from BacklinkCache
BacklinkCache::get(), ::getLinks(), ::getCascadeProtectedLinks() have been removed from core. No longer used. Change-Id: I84d743719e08c755dc98777ecf6d6d1e92eb2d2b
Diffstat (limited to 'includes/cache/BacklinkCache.php')
-rw-r--r--includes/cache/BacklinkCache.php48
1 files changed, 0 insertions, 48 deletions
diff --git a/includes/cache/BacklinkCache.php b/includes/cache/BacklinkCache.php
index 849fd788ad92..2891d17901fb 100644
--- a/includes/cache/BacklinkCache.php
+++ b/includes/cache/BacklinkCache.php
@@ -34,10 +34,7 @@ use MediaWiki\Page\PageIdentity;
use MediaWiki\Page\PageIdentityValue;
use MediaWiki\Page\PageReference;
use MediaWiki\Title\Title;
-use MediaWiki\Title\TitleArray;
-use MediaWiki\Title\TitleArrayFromResult;
use Wikimedia\Rdbms\Database;
-use Wikimedia\Rdbms\FakeResultWrapper;
use Wikimedia\Rdbms\IConnectionProvider;
use Wikimedia\Rdbms\IReadableDatabase;
use Wikimedia\Rdbms\IResultWrapper;
@@ -116,23 +113,6 @@ class BacklinkCache {
}
/**
- * Create a new BacklinkCache or reuse any existing one.
- * Currently, only one cache instance can exist; callers that
- * need multiple backlink cache objects should keep them in scope.
- *
- * @deprecated since 1.37 Use BacklinkCacheFactory::getBacklinkCache() instead. Hard deprecated in 1.40.
- *
- * @param PageReference $page Page to get a backlink cache for
- * @return BacklinkCache
- */
- public static function get( PageReference $page ): self {
- wfDeprecated( __METHOD__, '1.37' );
- $backlinkCacheFactory = MediaWikiServices::getInstance()->getBacklinkCacheFactory();
-
- return $backlinkCacheFactory->getBacklinkCache( $page );
- }
-
- /**
* @since 1.37
* @return PageReference
*/
@@ -169,21 +149,6 @@ class BacklinkCache {
/**
* Get the backlinks for a given table. Cached in process memory only.
- *
- * @deprecated in 1.37, use getLinkPages(). Hard deprecated in 1.40.
- * @param string $table
- * @param int|bool $startId
- * @param int|bool $endId
- * @param int|float $max Integer, or INF for no max
- * @return TitleArrayFromResult
- */
- public function getLinks( $table, $startId = false, $endId = false, $max = INF ) {
- wfDeprecated( __METHOD__, '1.37' );
- return TitleArray::newFromResult( $this->queryLinks( $table, $startId, $endId, $max ) );
- }
-
- /**
- * Get the backlinks for a given table. Cached in process memory only.
* @param string $table
* @param int|bool $startId
* @param int|bool $endId
@@ -530,19 +495,6 @@ class BacklinkCache {
}
/**
- * Get a Title iterator for cascade-protected template/file use backlinks
- *
- * @deprecated since 1.37, use getCascadeProtectedLinkPages(). Hard deprecated in 1.40.
- * @return TitleArray
- * @since 1.25
- */
- public function getCascadeProtectedLinks() {
- wfDeprecated( __METHOD__, '1.37' );
- return TitleArray::newFromResult(
- new FakeResultWrapper( $this->getCascadeProtectedLinksInternal() ) );
- }
-
- /**
* Get an array of cascade-protected template/file use backlinks
*
* @return stdClass[]