[search] Remove more dead code
authorErik Bernhardson <ebernhardson@wikimedia.org>
Mon, 7 Nov 2016 22:45:07 +0000 (14:45 -0800)
committerErik Bernhardson <ebernhardson@wikimedia.org>
Mon, 7 Nov 2016 23:00:48 +0000 (15:00 -0800)
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

includes/specials/SpecialSearch.php

index f301e7c..e7a8677 100644 (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 );
        }