From 692257f959f31872394abd15fbddef38ea1e4198 Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Wed, 19 Mar 2014 09:35:23 -0700 Subject: [PATCH] Remove completely useless implementation of getInfo() Embedding random strings in Special:Search's comments doesn't help debugging and just increases page size. Bug: 62768 Change-Id: I51270aa3f2cba921841e2d8ebbd4fa665542f8a9 --- includes/search/SearchResultSet.php | 10 ---------- includes/specials/SpecialSearch.php | 7 +------ 2 files changed, 1 insertion(+), 16 deletions(-) diff --git a/includes/search/SearchResultSet.php b/includes/search/SearchResultSet.php index 3c6c8d055f..e6893892ce 100644 --- a/includes/search/SearchResultSet.php +++ b/includes/search/SearchResultSet.php @@ -88,16 +88,6 @@ class SearchResultSet { return ''; } - /** - * Return information about how and from where the results were fetched, - * should be useful for diagnostics and debugging - * - * @return String - */ - function getInfo() { - return null; - } - /** * Return a result set of hits on other (multiple) wikis associated with this one * diff --git a/includes/specials/SpecialSearch.php b/includes/specials/SpecialSearch.php index 3659c48ab9..ffe88f7aec 100644 --- a/includes/specials/SpecialSearch.php +++ b/includes/specials/SpecialSearch.php @@ -538,12 +538,7 @@ class SpecialSearch extends SpecialPage { $terms = $wgContLang->convertForSearchResult( $matches->termMatches() ); - $out = ""; - $infoLine = $matches->getInfo(); - if ( !is_null( $infoLine ) ) { - $out .= "\n\n"; - } - $out .= "