GlobalFunctions: Remove deprecated `wfMakeUrlIndexes()` function
authorDerick Alangi <alangiderick@gmail.com>
Sat, 27 Apr 2019 07:00:19 +0000 (08:00 +0100)
committerDerick Alangi <alangiderick@gmail.com>
Sun, 28 Apr 2019 08:21:27 +0000 (09:21 +0100)
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

RELEASE-NOTES-1.34
includes/GlobalFunctions.php

index a834ec0..9dc1961 100644 (file)
@@ -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 ===
index 118a617..c7a45c7 100644 (file)
@@ -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