diff options
author | rubidium <rubidium@openttd.org> | 2008-05-08 11:50:34 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-05-08 11:50:34 +0000 |
commit | 23fc96c3e8c252edbf2e7c22cefab633a0474410 (patch) | |
tree | 23ad171b2093a5c5980b9d912bf60056102af9fa /src/window.cpp | |
parent | 2eef026fe35b9236606062f7d8a59d5661a5c748 (diff) | |
download | openttd-23fc96c3e8c252edbf2e7c22cefab633a0474410.tar.xz |
(svn r13005) -Codechange: prepare AllocateWindowDescFront for subclassing of Window.
Diffstat (limited to 'src/window.cpp')
-rw-r--r-- | src/window.cpp | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/window.cpp b/src/window.cpp index a220a9369..d59c39cef 100644 --- a/src/window.cpp +++ b/src/window.cpp @@ -1012,19 +1012,6 @@ Window::Window(const WindowDesc *desc, void *data, WindowNumber window_number) this->desc_flags = desc->flags; } -/** - * Open a new window. - * @param *desc The pointer to the WindowDesc to be created - * @param window_number the window number of the new window - * @param data arbitrary data that is send with the WE_CREATE message - * @return see Window pointer of the newly created window - */ -Window *AllocateWindowDescFront(const WindowDesc *desc, int window_number, void *data) -{ - if (BringWindowToFrontById(desc->cls, window_number)) return NULL; - return new Window(desc, data, window_number); -} - /** Do a search for a window at specific coordinates. For this we start * at the topmost window, obviously and work our way down to the bottom * @param x position x to query |