[search] Remove more dead code

This code in SpecialSearch looks to still be around from the days where
there was a feature that go would send you to directly to an edit page,
rather than showing search results. That feature no longer exists, so
remove the related code.

Change-Id: If5b064b08a6258bfab31ab8f8b62c1d7283c8912
This commit is contained in:
Erik Bernhardson 2016-11-07 14:45:07 -08:00
parent fecf1efb9a
commit 1525f6cd45

View file

@ -234,11 +234,6 @@ class SpecialSearch extends SpecialPage {
return;
}
# No match, generate an edit URL
$title = Title::newFromText( $term );
if ( !is_null( $title ) ) {
Hooks::run( 'SpecialSearchNogomatch', [ &$title ] );
}
$this->showResults( $term );
}