mirror of
https://github.com/gryf/wmaker.git
synced 2026-02-11 11:15:55 +01:00
WINGs: Dead code removal
- on_exit is nowhere to be found in recent written history - so there haven't for long been a system with !HAVE_ATEXIT - so there is no need for either #ifdef HAVE_ATEXITs or configure checks for atexit Signed-off-by: Tamas TEVESZ <ice@extreme.hu>
This commit is contained in:
committed by
Carlos R. Mafra
parent
b305eb84fb
commit
d8eea6a155
@@ -102,11 +102,7 @@ char *wglobaldefaultspathfordomain(const char *domain)
|
||||
}
|
||||
|
||||
static void
|
||||
#ifdef HAVE_ATEXIT
|
||||
saveDefaultsChanges(void)
|
||||
#else
|
||||
saveDefaultsChanges(int foo, void *bar)
|
||||
#endif
|
||||
{
|
||||
/* save the user defaults databases */
|
||||
synchronizeUserDefaults(NULL);
|
||||
@@ -118,11 +114,7 @@ static void registerSaveOnExit(void)
|
||||
static Bool registeredSaveOnExit = False;
|
||||
|
||||
if (!registeredSaveOnExit) {
|
||||
#ifdef HAVE_ATEXIT
|
||||
atexit(saveDefaultsChanges);
|
||||
#else
|
||||
on_exit(saveDefaultsChanges, (void *)NULL);
|
||||
#endif
|
||||
registeredSaveOnExit = True;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user