From b6048815286dfa3a0e5a272a4c828cb33694f8ac Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Sat, 12 Apr 2014 16:13:44 +0100 Subject: Remove redundant code. Remove workaround for crash caused by flawed table layout. Table layout is now fixed. --- render/table.c | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/render/table.c b/render/table.c index 1dd179d68..77ef4373b 100644 --- a/render/table.c +++ b/render/table.c @@ -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; -- cgit v1.2.3