From 242d225e1071e2b8910ed5b41a35a21b01a9fb7a Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Sat, 5 Jun 2004 02:22:16 +0000 Subject: [PATCH] removed non-matching wfProfileOut() calls --- includes/Parser.php | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/includes/Parser.php b/includes/Parser.php index 212960243c..a22abdffe9 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -854,7 +854,6 @@ class Parser $trail = $m[3]; } else { # Invalid form; output directly $s .= $prefix . "[[" . $line ; - wfProfileOut( $fname ); continue; } @@ -893,7 +892,6 @@ class Parser $nt = Title::newFromText( $link ); if( !$nt ) { $s .= $prefix . "[[" . $line; - wfProfileOut( $fname ); continue; } $ns = $nt->getNamespace(); @@ -902,14 +900,12 @@ class Parser if( $iw && $this->mOptions->getInterwikiMagic() && $nottalk && $wgLang->getLanguageName( $iw ) ) { array_push( $this->mOutput->mLanguageLinks, $nt->getPrefixedText() ); $tmp = $prefix . $trail ; - wfProfileOut( $fname ); $s .= (trim($tmp) == '')? '': $tmp; continue; } if ( $ns == $image ) { $s .= $prefix . $sk->makeImageLinkObj( $nt, $text ) . $trail; $wgLinkCache->addImageLinkObj( $nt ); - wfProfileOut( $fname ); continue; } if ( $ns == $category ) { @@ -924,7 +920,6 @@ class Parser $wgLinkCache->addCategoryLinkObj( $nt, $sortkey ); $this->mOutput->mCategoryLinks[] = $t ; $s .= $prefix . $trail ; - wfProfileOut( $fname ); continue; } } @@ -932,18 +927,15 @@ class Parser ( strpos( $link, "#" ) == FALSE ) ) { # Self-links are handled specially; generally de-link and change to bold. $s .= $prefix . $sk->makeSelfLinkObj( $nt, $text, "", $trail ); - wfProfileOut( $fname ); continue; } if( $ns == $media ) { $s .= $prefix . $sk->makeMediaLinkObj( $nt, $text ) . $trail; $wgLinkCache->addImageLinkObj( $nt ); - wfProfileOut( $fname ); - continue; + continue; } elseif( $ns == $special ) { $s .= $prefix . $sk->makeKnownLinkObj( $nt, $text, "", $trail ); - wfProfileOut( $fname ); continue; } $s .= $sk->makeLinkObj( $nt, $text, "", $trail, $prefix ); -- 2.20.1