foxygit / doom Log in
commit 71cc7a163dd6b391e22afa2badfc67b62c4d82dd
Author:     Fabian Greffrath <fabian@greffrath.com>
AuthorDate: Tue Nov 17 17:33:13 2015 +0100
Commit:     Fabian Greffrath <fabian@greffrath.com>
CommitDate: Tue Nov 17 17:33:13 2015 +0100

    Fix warning: variable ‘widget’ set but not used
---
 textscreen/txt_table.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/textscreen/txt_table.c b/textscreen/txt_table.c
index 28c882e3..86537c92 100644
--- a/textscreen/txt_table.c
+++ b/textscreen/txt_table.c
@@ -149,12 +149,9 @@ static void CalculateWidgetDimensions(txt_table_t *table,
                                       unsigned int *row_heights,
                                       unsigned int *w, unsigned int *h)
 {
-    txt_widget_t *widget;
     int cell_w, cell_h;
     int x1, y1;

-    widget = table->widgets[y * table->columns + x];
-
     // Find which cells this widget occupies.
     CellOverflowedSize(table, x, y, &cell_w, &cell_h);