From ac5b9e53df8d5dc8f2c751f0628d13ed6b12a4e2 Mon Sep 17 00:00:00 2001 From: "James D. Forrester" Date: Fri, 21 Jun 2019 13:59:02 -0700 Subject: [PATCH] PrefixSearch: Drop titleSearch(), deprecated in 1.23 Change-Id: I3e11421953bfe63856e29b928727c8264275cd25 --- RELEASE-NOTES-1.34 | 2 ++ includes/search/PrefixSearch.php | 16 ---------------- 2 files changed, 2 insertions(+), 16 deletions(-) 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. * -- 2.20.1