mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 06:05:56 +00:00
MINOR Removed unused code from Diff
This commit is contained in:
parent
03acbb737e
commit
3535dec032
@ -707,9 +707,6 @@ class Diff
|
|||||||
// Go through everything, converting edited tags (and their content) into single chunks. Otherwise
|
// Go through everything, converting edited tags (and their content) into single chunks. Otherwise
|
||||||
// the generated HTML gets crusty
|
// the generated HTML gets crusty
|
||||||
foreach($diff->edits as $edit) {
|
foreach($diff->edits as $edit) {
|
||||||
//echo "<li>$edit->type: " . htmlentities(implode(" " ,$edit->orig));
|
|
||||||
//if($edit->final) echo ' / ' . htmlentities(implode(" " ,$edit->final));
|
|
||||||
|
|
||||||
switch($edit->type) {
|
switch($edit->type) {
|
||||||
case 'copy':
|
case 'copy':
|
||||||
$lookForTag = false;
|
$lookForTag = false;
|
||||||
@ -750,7 +747,6 @@ class Diff
|
|||||||
else if(isset($item[0]) && $item[0] == "<") $tagStack[$listName]++;
|
else if(isset($item[0]) && $item[0] == "<") $tagStack[$listName]++;
|
||||||
}
|
}
|
||||||
|
|
||||||
// echo "<li>" . htmlentities($item) . " -> " .$tagStack[$listName];
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -760,9 +756,6 @@ class Diff
|
|||||||
$diff = new Diff($rechunked[1], $rechunked[2]);
|
$diff = new Diff($rechunked[1], $rechunked[2]);
|
||||||
$content = '';
|
$content = '';
|
||||||
foreach($diff->edits as $edit) {
|
foreach($diff->edits as $edit) {
|
||||||
// echo "<li>$edit->type: " . htmlentities(implode(" " ,$edit->orig));
|
|
||||||
// if($edit->final) echo ' / ' . htmlentities(implode(" " ,$edit->final));
|
|
||||||
|
|
||||||
switch($edit->type) {
|
switch($edit->type) {
|
||||||
case 'copy':
|
case 'copy':
|
||||||
$content .= " " . implode(" ", $edit->orig) . " ";
|
$content .= " " . implode(" ", $edit->orig) . " ";
|
||||||
@ -782,7 +775,6 @@ class Diff
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// echo "<p>" . htmlentities($content) . "</p>";
|
|
||||||
return self::cleanHTML($content);
|
return self::cleanHTML($content);
|
||||||
}
|
}
|
||||||
static function getHTMLChunks($content) {
|
static function getHTMLChunks($content) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user