From dddfaaac7db08252a500fb2d0d1fb2cc7200d20c Mon Sep 17 00:00:00 2001 From: rubidium Date: Tue, 13 May 2008 14:43:33 +0000 Subject: (svn r13069) -Codechange: it is no longer needed to pass a void *data pointer with the WE_CREATE message because nothing uses it anymore. --- src/window_gui.h | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'src/window_gui.h') diff --git a/src/window_gui.h b/src/window_gui.h index 2edef2343..8102340ae 100644 --- a/src/window_gui.h +++ b/src/window_gui.h @@ -143,10 +143,6 @@ enum WindowEventCodes { struct WindowEvent { byte event; union { - struct { - void *data; - } create; - struct { Point pt; int widget; @@ -291,13 +287,13 @@ private: protected: void Initialize(int x, int y, int min_width, int min_height, - WindowProc *proc, WindowClass cls, const Widget *widget, int window_number, void *data); + WindowProc *proc, WindowClass cls, const Widget *widget, int window_number); void FindWindowPlacementAndResize(int def_width, int def_height); void FindWindowPlacementAndResize(const WindowDesc *desc); public: - Window(int x, int y, int width, int height, WindowProc *proc, WindowClass cls, const Widget *widget, void *data = NULL); - Window(const WindowDesc *desc, void *data = NULL, WindowNumber number = 0); + Window(int x, int y, int width, int height, WindowProc *proc, WindowClass cls, const Widget *widget); + Window(const WindowDesc *desc, WindowNumber number = 0); virtual ~Window(); @@ -642,10 +638,10 @@ bool IsWindowOfPrototype(const Window *w, const Widget *widget); * @return see Window pointer of the newly created window */ template -Wcls *AllocateWindowDescFront(const WindowDesc *desc, int window_number, void *data = NULL) +Wcls *AllocateWindowDescFront(const WindowDesc *desc, int window_number) { if (BringWindowToFrontById(desc->cls, window_number)) return NULL; - return new Wcls(desc, data, window_number); + return new Wcls(desc, window_number); } void DrawWindowViewport(const Window *w); -- cgit v1.2.3-54-g00ecf