Remove redundant code.

Remove workaround for crash caused by flawed table layout.
  Table layout is now fixed.
This commit is contained in:
Michael Drake 2014-04-12 16:13:44 +01:00
parent 679c87e527
commit b604881528

View File

@ -336,7 +336,6 @@ void table_used_left_border_for_cell(struct box *cell)
if (cell->prev == NULL) {
struct box *row;
struct box *rowg;
/* Spanned from a previous row in current row group */
for (row = cell->parent; row != NULL; row = row->prev) {
@ -352,25 +351,6 @@ void table_used_left_border_for_cell(struct box *cell)
break;
}
for (rowg = cell->parent->parent;
rowg != NULL && prev == NULL;
rowg = rowg->prev) {
/* Spanned from a previous row in
* previous row group */
for (row = rowg->last; row != NULL;
row = row->prev) {
for (prev = row->children;
prev != NULL;
prev = prev->next) {
if (prev->start_column +
prev->columns ==
cell->
start_column)
break;
}
}
}
assert(prev != NULL);
} else {
prev = cell->prev;