From 3535dec03237b63cd38bde515ed8ddd9be3ba981 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Wed, 8 Dec 2010 12:58:32 +1300 Subject: [PATCH] MINOR Removed unused code from Diff --- code/Diff.php | 8 -------- 1 file changed, 8 deletions(-) diff --git a/code/Diff.php b/code/Diff.php index 708cc814..0002ee67 100755 --- a/code/Diff.php +++ b/code/Diff.php @@ -707,9 +707,6 @@ class Diff // Go through everything, converting edited tags (and their content) into single chunks. Otherwise // the generated HTML gets crusty foreach($diff->edits as $edit) { - //echo "
  • $edit->type: " . htmlentities(implode(" " ,$edit->orig)); - //if($edit->final) echo ' / ' . htmlentities(implode(" " ,$edit->final)); - switch($edit->type) { case 'copy': $lookForTag = false; @@ -750,7 +747,6 @@ class Diff else if(isset($item[0]) && $item[0] == "<") $tagStack[$listName]++; } - // echo "
  • " . htmlentities($item) . " -> " .$tagStack[$listName]; } } } @@ -760,9 +756,6 @@ class Diff $diff = new Diff($rechunked[1], $rechunked[2]); $content = ''; foreach($diff->edits as $edit) { - // echo "
  • $edit->type: " . htmlentities(implode(" " ,$edit->orig)); - // if($edit->final) echo ' / ' . htmlentities(implode(" " ,$edit->final)); - switch($edit->type) { case 'copy': $content .= " " . implode(" ", $edit->orig) . " "; @@ -782,7 +775,6 @@ class Diff break; } } - // echo "

    " . htmlentities($content) . "

    "; return self::cleanHTML($content); } static function getHTMLChunks($content) {