mirror of
https://github.com/gryf/wmaker.git
synced 2026-01-10 15:54:17 +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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -163,7 +163,7 @@ dnl not used anywhere
|
||||
AC_FUNC_MEMCMP
|
||||
AC_FUNC_VPRINTF
|
||||
AC_CHECK_FUNCS(gethostname select poll strcasecmp strncasecmp \
|
||||
setsid atexit mallinfo mkstemp sysconf)
|
||||
setsid mallinfo mkstemp sysconf)
|
||||
|
||||
dnl Check for strlcat/strlcpy
|
||||
dnl =========================
|
||||
|
||||
Reference in New Issue
Block a user