diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2014-04-12 16:13:44 +0100 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2014-04-12 16:13:44 +0100 |
commit | b6048815286dfa3a0e5a272a4c828cb33694f8ac (patch) | |
tree | 3df6adec7cacfec6228cfaf51056d61d2aad6ef2 | |
parent | 679c87e527e03926b6369c0f82096e5459beef13 (diff) | |
download | netsurf-b6048815286dfa3a0e5a272a4c828cb33694f8ac.tar.gz netsurf-b6048815286dfa3a0e5a272a4c828cb33694f8ac.tar.bz2 |
Remove redundant code.
Remove workaround for crash caused by flawed table layout.
Table layout is now fixed.
-rw-r--r-- | render/table.c | 20 |
1 files changed, 0 insertions, 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; |