Fix warning: variable ‘widget’ set but not used

This commit is contained in:
Fabian Greffrath 2015-11-17 17:33:13 +01:00
parent 6345a9bdee
commit 71cc7a163d

View file

@ -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);