summaryrefslogtreecommitdiff
path: root/src/widget.cpp
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2009-07-15 22:55:43 +0000
committeralberth <alberth@openttd.org>2009-07-15 22:55:43 +0000
commit99215c5010ec0398ed7be71a026f48072878ade5 (patch)
tree3be03356628b9314280f87bf13b6b938aad3dab2 /src/widget.cpp
parent9be387761c9af61fe30e502789e636155e7e1426 (diff)
downloadopenttd-99215c5010ec0398ed7be71a026f48072878ade5.tar.xz
(svn r16839) -Codechange: Remove obsolete FillNestedArray().
Diffstat (limited to 'src/widget.cpp')
-rw-r--r--src/widget.cpp29
1 files changed, 0 insertions, 29 deletions
diff --git a/src/widget.cpp b/src/widget.cpp
index 089613fab..f6e858cde 100644
--- a/src/widget.cpp
+++ b/src/widget.cpp
@@ -918,13 +918,6 @@ NWidgetBase::NWidgetBase(WidgetType tp) : ZeroedMemoryAllocator()
*/
/**
- * @fn void FillNestedArray(NWidgetCore **array, uint length)
- * Fill the Window::nested_array array with pointers to nested widgets in the tree.
- * @param array Base pointer of the array.
- * @param length Length of the array.
- */
-
-/**
* Store size and position.
* @param sizing Type of resizing to perform.
* @param x Horizontal offset of the widget relative to the left edge of the window.
@@ -1082,11 +1075,6 @@ void NWidgetCore::SetDataTip(uint16 widget_data, StringID tool_tip)
this->tool_tip = tool_tip;
}
-void NWidgetCore::FillNestedArray(NWidgetCore **array, uint length)
-{
- if (this->index >= 0 && (uint)(this->index) < length) array[this->index] = this;
-}
-
void NWidgetCore::StoreWidgets(Widget *widgets, int length, bool left_moving, bool top_moving, bool rtl)
{
if (this->index < 0) return;
@@ -1184,13 +1172,6 @@ void NWidgetContainer::Add(NWidgetBase *wid)
}
}
-void NWidgetContainer::FillNestedArray(NWidgetCore **array, uint length)
-{
- for (NWidgetBase *child_wid = this->head; child_wid != NULL; child_wid = child_wid->next) {
- child_wid->FillNestedArray(array, length);
- }
-}
-
/**
* Return the biggest possible size of a nested widget.
* @param base Base size of the widget.
@@ -1614,10 +1595,6 @@ void NWidgetSpacer::SetupSmallestSize(Window *w, bool init_array)
this->smallest_y = this->min_y;
}
-void NWidgetSpacer::FillNestedArray(NWidgetCore **array, uint length)
-{
-}
-
void NWidgetSpacer::StoreWidgets(Widget *widgets, int length, bool left_moving, bool top_moving, bool rtl)
{
/* Spacer widgets are never stored in the widget array. */
@@ -1742,12 +1719,6 @@ void NWidgetBackground::StoreWidgets(Widget *widgets, int length, bool left_movi
if (this->child != NULL) this->child->StoreWidgets(widgets, length, left_moving, top_moving, rtl);
}
-void NWidgetBackground::FillNestedArray(NWidgetCore **array, uint length)
-{
- if (this->index >= 0 && (uint)(this->index) < length) array[this->index] = this;
- if (this->child != NULL) this->child->FillNestedArray(array, length);
-}
-
void NWidgetBackground::Draw(const Window *w)
{
if (this->current_x == 0 || this->current_y == 0) return;