X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fsearch%2FPrefixSearch.php;h=3fff6c1b60a8c5b5a947ebed869f9043be00ce31;hp=3b7a0a9f995d059f9ee1acf9760a68d7ce2d474d;hb=6cfb2e3d7a2b96d5041312fcec88248bb46573d7;hpb=18a53cb48bc5848e490f3bc1c444e26ef8bc8299 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. *