Permalink
Browse files

MINOR Removed debug code from Diff.php

  • Loading branch information...
1 parent d6f4b24 commit 72d5423ac569c34a28ad7ddafd64a5b4aad0a1ec @chillu chillu committed Sep 9, 2011
Showing with 1 addition and 9 deletions.
  1. +1 −9 core/Diff.php
View
@@ -710,9 +710,6 @@ static function compareHTML($from, $to) {
// Go through everything, converting edited tags (and their content) into single chunks. Otherwise
// the generated HTML gets crusty
foreach($diff->edits as $edit) {
- //echo "<li>$edit->type: " . htmlentities(implode(" " ,$edit->orig));
- //if($edit->final) echo ' / ' . htmlentities(implode(" " ,$edit->final));
-
switch($edit->type) {
case 'copy':
$lookForTag = false;
@@ -752,8 +749,6 @@ static function compareHTML($from, $to) {
if(substr($item,0,2) == "</") $tagStack[$listName]--;
else if(isset($item[0]) && $item[0] == "<") $tagStack[$listName]++;
}
-
- // echo "<li>" . htmlentities($item) . " -> " .$tagStack[$listName];
}
}
}
@@ -763,9 +758,6 @@ static function compareHTML($from, $to) {
$diff = new Diff($rechunked[1], $rechunked[2]);
$content = '';
foreach($diff->edits as $edit) {
- // echo "<li>$edit->type: " . htmlentities(implode(" " ,$edit->orig));
- // if($edit->final) echo ' / ' . htmlentities(implode(" " ,$edit->final));
-
switch($edit->type) {
case 'copy':
$content .= " " . implode(" ", $edit->orig) . " ";
@@ -785,7 +777,7 @@ static function compareHTML($from, $to) {
break;
}
}
- // echo "<p>" . htmlentities($content) . "</p>";
+
return self::cleanHTML($content);
}

0 comments on commit 72d5423

Please sign in to comment.