As pointed out by Nicolas Bonifas, wWindowCheckAttributeSanity() is
currently unused. Removing it saves 200 bytes:
text data bss dec hex filename
23476 0 8 23484 5bbc src/window.o.new
23676 0 8 23684 5c84 src/window.o.old
---
src/window.c | 18 ------------------
1 files changed, 0 insertions(+), 18 deletions(-)
diff --git a/src/window.c b/src/window.c
index 9884944..89dc20d 100644
--- a/src/window.c
+++ b/src/window.c
@@ -304,24 +304,6 @@ static void setupGNUstepHints(WWindow *wwin,
GNUstepWMAttributes *gs_hints)
wwin->client_flags.no_appicon = 1;
}
-void wWindowCheckAttributeSanity(WWindow *wwin, WWindowAttributes *wflags,
WWindowAttributes *mask)
-{
- if (wflags->no_appicon && mask->no_appicon)
- wflags->emulate_appicon = 0;
-
- if (wwin->main_window != None) {
- WApplication *wapp = wApplicationOf(wwin->main_window);
- if (wapp && !wapp->flags.emulated)
- wflags->emulate_appicon = 0;
- }
-
- if (wwin->transient_for != None && wwin->transient_for !=
wwin->screen_ptr->root_win)
- wflags->emulate_appicon = 0;
-
- if (wflags->sunken && mask->sunken && wflags->floating &&
mask->floating)
- wflags->sunken = 0;
-}
-
void wWindowSetupInitialAttributes(WWindow *wwin, int *level, int *workspace)
{
WScreen *scr = wwin->screen_ptr;
--
1.6.6.rc0.61.g41d5b
--
To unsubscribe, send mail to [email protected].