Remove window_exists - can get back from an earlier commit if needed
This commit is contained in:
parent
5064a938f9
commit
ca0a012ecb
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue