From: Sam Reed Date: Tue, 27 Jan 2015 05:31:43 +0000 (+0000) Subject: Remove unused $fname temporary variables X-Git-Tag: 1.31.0-rc.0~12595 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/%7B%7B%20url_for%28%27vote%27%2C%20idvote=vote.voteid%29%20%7D%7D?a=commitdiff_plain;h=2dc1ca4ace4f8d5f7f0b00ac06e0ead6ff826a38;p=lhc%2Fweb%2Fwiklou.git Remove unused $fname temporary variables Change-Id: Ia7a32ecdfc293e870e42cd7398fc017de0d59f11 --- diff --git a/includes/search/SearchHighlighter.php b/includes/search/SearchHighlighter.php index 255d005cc4..ec7b710c02 100644 --- a/includes/search/SearchHighlighter.php +++ b/includes/search/SearchHighlighter.php @@ -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 );