Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MINOR Removed unused code from Diff

  • Loading branch information...
commit 3535dec03237b63cd38bde515ed8ddd9be3ba981 1 parent 03acbb7
@chillu chillu authored
Showing with 0 additions and 8 deletions.
  1. +0 −8 code/Diff.php
View
8 code/Diff.php
@@ -707,9 +707,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;
@@ -750,7 +747,6 @@ static function compareHTML($from, $to) {
else if(isset($item[0]) && $item[0] == "<") $tagStack[$listName]++;
}
- // echo "<li>" . htmlentities($item) . " -> " .$tagStack[$listName];
}
}
}
@@ -760,9 +756,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) . " ";
@@ -782,7 +775,6 @@ static function compareHTML($from, $to) {
break;
}
}
- // echo "<p>" . htmlentities($content) . "</p>";
return self::cleanHTML($content);
}
static function getHTMLChunks($content) {
Please sign in to comment.
Something went wrong with that request. Please try again.