Skip to content

Commit

Permalink
Remove code that we're not sure why it's here
Browse files Browse the repository at this point in the history
  • Loading branch information
mattab committed Dec 10, 2014
1 parent 76e5d92 commit 8b094d7
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions core/DataTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -1114,10 +1114,7 @@ public function getSerialized($maximumRowsInDataTable = null,
$aSerializedDataTable = array();
foreach ($this->rows as $row) {
$subTable = $row->getSubtable();
if (!$subTable) {
// Not sure if this code is needed
$row->removeSubtable();
} else {
if ($subTable) {
$depth++;
$aSerializedDataTable = $aSerializedDataTable + $subTable->getSerialized($maximumRowsInSubDataTable, $maximumRowsInSubDataTable, $columnToSortByBeforeTruncation);
$depth--;
Expand Down

0 comments on commit 8b094d7

Please sign in to comment.