From: Derick Alangi Date: Sat, 27 Apr 2019 07:00:19 +0000 (+0100) Subject: GlobalFunctions: Remove deprecated `wfMakeUrlIndexes()` function X-Git-Tag: 1.34.0-rc.0~1858 X-Git-Url: https://git.heureux-cyclage.org/?a=commitdiff_plain;h=fee2fa2d8ede39ce6560e4708b9b910f69f83db0;p=lhc%2Fweb%2Fwiklou.git GlobalFunctions: Remove deprecated `wfMakeUrlIndexes()` function This function was hard deprecated in 1.33 and per code search, usage is no longer there, probably completely replaced? Usage ===== https://codesearch.wmflabs.org/search/?q=%5CbwfMakeUrlIndexes%5Cb&i=nope&files=&repos= Bug: T42485 Change-Id: I01642a8207f582762428f5a7ac33830066268b2e --- diff --git a/RELEASE-NOTES-1.34 b/RELEASE-NOTES-1.34 index a834ec006a..9dc19611dd 100644 --- a/RELEASE-NOTES-1.34 +++ b/RELEASE-NOTES-1.34 @@ -106,6 +106,7 @@ because of Phabricator reports. * Parser class property $mUniqPrefix, deprecated in 1.26, has been removed. * wfArrayFilter() and wfArrayFilterByKey(), deprecated in 1.32, have been removed. +* wfMakeUrlIndexes() function, deprecated in 1.33, have been removed. * … === Deprecations in 1.34 === diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index 118a61788c..c7a45c72b3 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -869,18 +869,6 @@ function wfExpandIRI( $url ) { ); } -/** - * Make URL indexes, appropriate for the el_index field of externallinks. - * - * @deprecated since 1.33, use LinkFilter::makeIndexes() instead - * @param string $url - * @return array - */ -function wfMakeUrlIndexes( $url ) { - wfDeprecated( __FUNCTION__, '1.33' ); - return LinkFilter::makeIndexes( $url ); -} - /** * Check whether a given URL has a domain that occurs in a given set of domains * @param string $url