Remove unused $fname temporary variables
authorSam Reed <reedy@wikimedia.org>
Tue, 27 Jan 2015 05:31:43 +0000 (05:31 +0000)
committerSam Reed <reedy@wikimedia.org>
Tue, 27 Jan 2015 05:31:43 +0000 (05:31 +0000)
Change-Id: Ia7a32ecdfc293e870e42cd7398fc017de0d59f11

includes/search/SearchHighlighter.php

index 255d005..ec7b710 100644 (file)
@@ -45,8 +45,6 @@ class SearchHighlighter {
        public function highlightText( $text, $terms, $contextlines, $contextchars ) {
                global $wgContLang, $wgSearchHighlightBoundaries;
 
-               $fname = __METHOD__;
-
                if ( $text == '' ) {
                        return '';
                }
@@ -444,8 +442,6 @@ class SearchHighlighter {
         * @return mixed
         */
        function removeWiki( $text ) {
-               $fname = __METHOD__;
-
                // $text = preg_replace( "/'{2,5}/", "", $text );
                // $text = preg_replace( "/\[[a-z]+:\/\/[^ ]+ ([^]]+)\]/", "\\2", $text );
                // $text = preg_replace( "/\[\[([^]|]+)\]\]/", "\\1", $text );
@@ -503,7 +499,6 @@ class SearchHighlighter {
         */
        public function highlightSimple( $text, $terms, $contextlines, $contextchars ) {
                global $wgContLang;
-               $fname = __METHOD__;
 
                $lines = explode( "\n", $text );