diff options
author | James D. Forrester <jforrester@wikimedia.org> | 2023-10-05 16:35:06 -0400 |
---|---|---|
committer | James D. Forrester <jforrester@wikimedia.org> | 2023-10-05 16:35:14 -0400 |
commit | 1ffba3a1ada534431a023789d04528801e71b752 (patch) | |
tree | 05355d9dc64ba150c26099138ca4b7023a5476de /includes/content | |
parent | 77766d44c3a394c7a9435fa0d32768b5c6620416 (diff) | |
download | mediawikicore-1ffba3a1ada534431a023789d04528801e71b752.tar.gz mediawikicore-1ffba3a1ada534431a023789d04528801e71b752.zip |
Drop AbstractContent::getRedirectChain and ::getUltimateRedirectTarget, deprecated in 1.38
Change-Id: I6564ff72c89ec47a680381edc298f0ffbf9bae60
Diffstat (limited to 'includes/content')
-rw-r--r-- | includes/content/AbstractContent.php | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/includes/content/AbstractContent.php b/includes/content/AbstractContent.php index 8a428141ed77..b15fca4574f1 100644 --- a/includes/content/AbstractContent.php +++ b/includes/content/AbstractContent.php @@ -295,27 +295,6 @@ abstract class AbstractContent implements Content { } /** - * @since 1.21 - * @deprecated since 1.38, use getRedirectTarget() instead. - * Emitting deprecation warnings since 1.39. - * Support for redirect chains has been removed. - * - * @return Title[]|null - * - * @see Content::getRedirectChain - */ - public function getRedirectChain() { - wfDeprecated( __METHOD__, '1.38' ); - - $title = $this->getRedirectTarget(); - if ( $title === null ) { - return null; - } else { - return [ $title ]; - } - } - - /** * Subclasses that implement redirects should override this. * * @stable to override @@ -330,24 +309,6 @@ abstract class AbstractContent implements Content { } /** - * @note Migrated here from Title::newFromRedirectRecurse. - * - * @since 1.21 - * @deprecated since 1.38, use getRedirectTarget() instead. - * Emitting deprecation warnings since 1.39. - * Support for redirect chains has been removed. - * - * @return Title|null - * - * @see Content::getUltimateRedirectTarget - */ - public function getUltimateRedirectTarget() { - wfDeprecated( __METHOD__, '1.38' ); - - return $this->getRedirectTarget(); - } - - /** * @since 1.21 * * @return bool |