From 5d12f4286774b8066f4e3bf83d31df6e87fd752c Mon Sep 17 00:00:00 2001 From: alberth Date: Sun, 13 Dec 2009 13:29:13 +0000 Subject: (svn r18482) -Cleanup (r18092): Conversion to widget array is not done any more. --- src/widget.cpp | 8 -------- 1 file changed, 8 deletions(-) (limited to 'src') diff --git a/src/widget.cpp b/src/widget.cpp index 0129fca4b..fd01b65f6 100644 --- a/src/widget.cpp +++ b/src/widget.cpp @@ -1775,19 +1775,11 @@ NWidgetLeaf::NWidgetLeaf(WidgetType tp, Colours colour, int index, uint16 data, void NWidgetLeaf::SetupSmallestSize(Window *w, bool init_array) { - if (w == NULL) { // Conversion to widget array. - this->smallest_x = this->min_x; - this->smallest_y = this->min_y; - /* All other data is already at the right place. */ - return; - } - if (this->index >= 0 && init_array) { // Fill w->nested_array[] assert(w->nested_array_size > (uint)this->index); w->nested_array[this->index] = this; } - /* A non-NULL window pointer acts as switch to turn dynamic widget sizing on. */ Dimension size = {this->min_x, this->min_y}; Dimension fill = {this->fill_x, this->fill_y}; Dimension resize = {this->resize_x, this->resize_y}; -- cgit v1.2.3-70-g09d2