Remove window_exists - can get back from an earlier commit if needed

This commit is contained in:
Chris Taylor 2016-10-31 16:17:39 +08:00
parent 5064a938f9
commit ca0a012ecb
3 changed files with 0 additions and 16 deletions

View file

@ -100,20 +100,6 @@ int window_close(window *wind)
return 1;
}
#if 0
// This function is problematic in that another window could open with the same pointer value,
// causing a false positive to be returned.
// Could use w_exists, but that would mean filling it out with some bool stored elsewhere for every window (yuck)
int window_exists(window *wind)
{
window *w;
for (w = FirstWindow; w && w != wind; w = w->next) {}
return w && w == wind;
}
#endif
// Get the top window that's visible
window *window_get_front(void)
{

View file

@ -33,7 +33,6 @@ class unused_window_userdata_t;
*/
int window_close(window *wind);
//int window_exists(window *wind);
window *window_get_front();
window *window_get_first();
window *window_get_next(window &wind);

View file

@ -74,7 +74,6 @@ public:
friend window *window_create(grs_canvas &src, int x, int y, int w, int h, window_subfunction<void> event_callback, void *userdata, const void *createdata);
friend int window_close(window *wind);
//friend int window_exists(window *wind);
friend window *window_get_front();
friend window *window_get_first();
friend void window_select(window &wind);