X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fdiff%2FDiffFormatter.php;h=33ca931fdb588175c77775566911688fc9cb17c9;hb=5907e840ccad13f28438b413687342b65f3ab900;hp=d8a9ba37c3a90330e49309b3091233901687d5b4;hpb=d0afaa88434ebcb442c6dda5c46080bbc8e86a53;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/diff/DiffFormatter.php b/includes/diff/DiffFormatter.php index d8a9ba37c3..33ca931fdb 100644 --- a/includes/diff/DiffFormatter.php +++ b/includes/diff/DiffFormatter.php @@ -52,12 +52,11 @@ abstract class DiffFormatter { /** * Format a diff. * - * @param Diff $diff A Diff object. + * @param Diff $diff * * @return string The formatted output. */ public function format( $diff ) { - wfProfileIn( __METHOD__ ); $xi = $yi = 1; $block = false; @@ -115,7 +114,6 @@ abstract class DiffFormatter { } $end = $this->endDiff(); - wfProfileOut( __METHOD__ ); return $end; } @@ -125,12 +123,11 @@ abstract class DiffFormatter { * @param int $xlen * @param int $ybeg * @param int $ylen - * @param $edits + * @param array $edits * * @throws MWException If the edit type is not known. */ protected function block( $xbeg, $xlen, $ybeg, $ylen, &$edits ) { - wfProfileIn( __METHOD__ ); $this->startBlock( $this->blockHeader( $xbeg, $xlen, $ybeg, $ylen ) ); foreach ( $edits as $edit ) { if ( $edit->type == 'copy' ) { @@ -146,7 +143,6 @@ abstract class DiffFormatter { } } $this->endBlock(); - wfProfileOut( __METHOD__ ); } protected function startDiff() {