summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-05-16 23:29:31 +0000
committerrubidium <rubidium@openttd.org>2008-05-16 23:29:31 +0000
commit0b61b6c1d0eda707ce387ab4f41ffbeb35fb685d (patch)
treee28d4465d9fb518bc90c5a86b6f04758fbd49490
parente03193f9d75b223cabaf2c8cd511a5c6f40d59ec (diff)
downloadopenttd-0b61b6c1d0eda707ce387ab4f41ffbeb35fb685d.tar.xz
(svn r13129) -Codechange: remove the WP macro and it's related variables.
-rw-r--r--src/window_gui.h3
-rw-r--r--src/window_type.h7
2 files changed, 0 insertions, 10 deletions
diff --git a/src/window_gui.h b/src/window_gui.h
index b6636e2cc..62cf86f72 100644
--- a/src/window_gui.h
+++ b/src/window_gui.h
@@ -245,8 +245,6 @@ enum WindowDefaultPosition {
WDP_ALIGN_TBL = -4, ///< Align the left side of the window with the left side of the main toolbar
};
-#define WP(ptr, str) (*(str*)(ptr)->custom)
-
/**
* Scrollbar data structure
*/
@@ -320,7 +318,6 @@ public:
uint32 desc_flags; ///< Window/widgets default flags setting, @see WindowDefaultFlag
Window *parent; ///< Parent window
- byte custom[WINDOW_CUSTOM_SIZE]; ///< Additional data depending on window type
void HandleButtonClick(byte widget);
diff --git a/src/window_type.h b/src/window_type.h
index 86071a830..32c5eeb13 100644
--- a/src/window_type.h
+++ b/src/window_type.h
@@ -102,11 +102,4 @@ struct Window;
struct WindowEvent;
typedef int32 WindowNumber;
-/**
- * You cannot 100% reliably calculate the biggest custom struct as
- * the number of pointers in it and alignment will have a huge impact.
- * 32 is the largest window-size for 64-bit machines currently.
- */
-#define WINDOW_CUSTOM_SIZE 32
-
#endif /* WINDOW_TYPE_H */