jenkins-bot has submitted this change and it was merged.

Change subject: Remove unused $fname temporary variables
......................................................................


Remove unused $fname temporary variables

Change-Id: Ia7a32ecdfc293e870e42cd7398fc017de0d59f11
---
M includes/search/SearchHighlighter.php
1 file changed, 0 insertions(+), 5 deletions(-)

Approvals:
  Legoktm: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/includes/search/SearchHighlighter.php 
b/includes/search/SearchHighlighter.php
index 255d005..ec7b710 100644
--- a/includes/search/SearchHighlighter.php
+++ b/includes/search/SearchHighlighter.php
@@ -45,8 +45,6 @@
        public function highlightText( $text, $terms, $contextlines, 
$contextchars ) {
                global $wgContLang, $wgSearchHighlightBoundaries;
 
-               $fname = __METHOD__;
-
                if ( $text == '' ) {
                        return '';
                }
@@ -444,8 +442,6 @@
         * @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 @@
         */
        public function highlightSimple( $text, $terms, $contextlines, 
$contextchars ) {
                global $wgContLang;
-               $fname = __METHOD__;
 
                $lines = explode( "\n", $text );
 

-- 
To view, visit https://gerrit.wikimedia.org/r/186928
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ia7a32ecdfc293e870e42cd7398fc017de0d59f11
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Reedy <[email protected]>
Gerrit-Reviewer: Legoktm <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to