From: James D. Forrester Date: Fri, 21 Jun 2019 20:59:02 +0000 (-0700) Subject: PrefixSearch: Drop titleSearch(), deprecated in 1.23 X-Git-Tag: 1.34.0-rc.0~1287^2~5 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/journal.php?a=commitdiff_plain;h=ac5b9e53df8d5dc8f2c751f0628d13ed6b12a4e2;p=lhc%2Fweb%2Fwiklou.git PrefixSearch: Drop titleSearch(), deprecated in 1.23 Change-Id: I3e11421953bfe63856e29b928727c8264275cd25 --- diff --git a/RELEASE-NOTES-1.34 b/RELEASE-NOTES-1.34 index 87068d8ea1..f8aafd964e 100644 --- a/RELEASE-NOTES-1.34 +++ b/RELEASE-NOTES-1.34 @@ -232,6 +232,8 @@ because of Phabricator reports. * Skin::outputPage() no longer accepts a context. This was deprecated in 1.20. * Linker::link() no longer accepts a string for the query array, as was deprecated in 1.20. +* PrefixSearch::titleSearch(), deprecated in 1.23, has been removed. Use the + TitlePrefixSearch or StringPrefixSearch classes instead. * … === Deprecations in 1.34 === diff --git a/includes/search/PrefixSearch.php b/includes/search/PrefixSearch.php index 3b7a0a9f99..3fff6c1b60 100644 --- a/includes/search/PrefixSearch.php +++ b/includes/search/PrefixSearch.php @@ -30,22 +30,6 @@ use MediaWiki\MediaWikiServices; * @ingroup Search */ abstract class PrefixSearch { - /** - * Do a prefix search of titles and return a list of matching page names. - * @deprecated Since 1.23, use TitlePrefixSearch or StringPrefixSearch classes - * - * @param string $search - * @param int $limit - * @param array $namespaces Used if query is not explicitly prefixed - * @param int $offset How many results to offset from the beginning - * @return array Array of strings - */ - public static function titleSearch( $search, $limit, $namespaces = [], $offset = 0 ) { - wfDeprecated( __METHOD__, '1.23' ); - $prefixSearch = new StringPrefixSearch; - return $prefixSearch->search( $search, $limit, $namespaces, $offset ); - } - /** * Do a prefix search of titles and return a list of matching page names. *