changeset 13946:1b2430a53a2c draft

(svn r18482) -Cleanup (r18092): Conversion to widget array is not done any more.
author alberth <alberth@openttd.org>
date Sun, 13 Dec 2009 13:29:13 +0000
parents d725b850c967
children 4f086751330d
files src/widget.cpp
diffstat 1 files changed, 0 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/src/widget.cpp
+++ b/src/widget.cpp
@@ -1775,19 +1775,11 @@
 
 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};