summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-05-17 13:04:30 +0000
committerrubidium <rubidium@openttd.org>2008-05-17 13:04:30 +0000
commit7812b24a774c8228fa1b69318b9b01789769f013 (patch)
tree4e892fb569e9384cac0db7f49531aefdc66f6d1a
parent87015f5b6395f15a624f67e25dce10fe52a12c81 (diff)
downloadopenttd-7812b24a774c8228fa1b69318b9b01789769f013.tar.xz
(svn r13141) -Codechange: remove an unused variable from Window.
-rw-r--r--src/window.cpp3
-rw-r--r--src/window_gui.h1
2 files changed, 0 insertions, 4 deletions
diff --git a/src/window.cpp b/src/window.cpp
index a1222f17c..b728fed28 100644
--- a/src/window.cpp
+++ b/src/window.cpp
@@ -804,13 +804,10 @@ static Window *ForceFindDeletableWindow()
* @param widget pointer of widget array to fill the window with
*
* @post \c w->widget points to allocated memory and contains the copied widget array except for the terminating widget,
- * \c w->original_widget points to the original widgets,
* \c w->widget_count contains number of widgets in the allocated memory.
*/
static void AssignWidgetToWindow(Window *w, const Widget *widget)
{
- w->original_widget = widget;
-
if (widget != NULL) {
uint index = 1;
diff --git a/src/window_gui.h b/src/window_gui.h
index 29fe579f6..70c6d0e86 100644
--- a/src/window_gui.h
+++ b/src/window_gui.h
@@ -299,7 +299,6 @@ public:
byte caption_color; ///< Background color of the window caption, contains PlayerID
ViewportData *viewport; ///< Pointer to viewport data, if present
- const Widget *original_widget; ///< Original widget layout, copied from WindowDesc
Widget *widget; ///< Widgets of the window
uint widget_count; ///< Number of widgets of the window
uint32 desc_flags; ///< Window/widgets default flags setting, @see WindowDefaultFlag