mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-22 05:48:01 +01:00
Removed unused variable wapp_list
The variable wapp_list is never set, then the comparison with wapp is only true if wapp is NULL. wapp can not be NULL in the function wApplicationDestroy() because is tested previously. Signed-off-by: Rodolfo García Peñas (kix) <kix@kix.es>
This commit is contained in:
committed by
Carlos R. Mafra
parent
0de3e590ce
commit
2e64831fb6
@@ -146,7 +146,6 @@ WApplication *wApplicationCreate(WWindow * wwin)
|
||||
void wApplicationDestroy(WApplication *wapp)
|
||||
{
|
||||
WWindow *wwin;
|
||||
WScreen *scr;
|
||||
|
||||
if (!wapp)
|
||||
return;
|
||||
@@ -166,18 +165,10 @@ void wApplicationDestroy(WApplication * wapp)
|
||||
return;
|
||||
}
|
||||
|
||||
scr = wapp->main_window_desc->screen_ptr;
|
||||
|
||||
if (wapp == scr->wapp_list) {
|
||||
if (wapp->next)
|
||||
wapp->next->prev = NULL;
|
||||
scr->wapp_list = wapp->next;
|
||||
} else {
|
||||
if (wapp->next)
|
||||
wapp->next->prev = wapp->prev;
|
||||
if (wapp->prev)
|
||||
wapp->prev->next = wapp->next;
|
||||
}
|
||||
|
||||
XDeleteContext(dpy, wapp->main_window, w_global.context.app_win);
|
||||
wAppMenuDestroy(wapp->menu);
|
||||
|
||||
@@ -107,8 +107,6 @@ typedef struct _WScreen {
|
||||
|
||||
WMArray *fakeGroupLeaders; /* list of fake window group ids */
|
||||
|
||||
struct WApplication *wapp_list; /* list of all aplications */
|
||||
|
||||
WMBag *stacking_list; /* bag of lists of windows
|
||||
* in stacking order.
|
||||
* Indexed by window level
|
||||
|
||||
Reference in New Issue
Block a user