PrefixSearch: Drop titleSearch(), deprecated in 1.23
authorJames D. Forrester <jforrester@wikimedia.org>
Fri, 21 Jun 2019 20:59:02 +0000 (13:59 -0700)
committerJames D. Forrester <jforrester@wikimedia.org>
Mon, 24 Jun 2019 18:11:17 +0000 (11:11 -0700)
Change-Id: I3e11421953bfe63856e29b928727c8264275cd25

RELEASE-NOTES-1.34
includes/search/PrefixSearch.php

index 87068d8..f8aafd9 100644 (file)
@@ -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 ===
index 3b7a0a9..3fff6c1 100644 (file)
@@ -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.
         *