1
0
mirror of https://github.com/gryf/wmaker.git synced 2026-01-29 11:35:47 +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:
Tamas TEVESZ
2010-09-29 00:02:03 +02:00
committed by Carlos R. Mafra
parent b305eb84fb
commit d8eea6a155
2 changed files with 1 additions and 9 deletions

View File

@@ -102,11 +102,7 @@ char *wglobaldefaultspathfordomain(const char *domain)
} }
static void static void
#ifdef HAVE_ATEXIT
saveDefaultsChanges(void) saveDefaultsChanges(void)
#else
saveDefaultsChanges(int foo, void *bar)
#endif
{ {
/* save the user defaults databases */ /* save the user defaults databases */
synchronizeUserDefaults(NULL); synchronizeUserDefaults(NULL);
@@ -118,11 +114,7 @@ static void registerSaveOnExit(void)
static Bool registeredSaveOnExit = False; static Bool registeredSaveOnExit = False;
if (!registeredSaveOnExit) { if (!registeredSaveOnExit) {
#ifdef HAVE_ATEXIT
atexit(saveDefaultsChanges); atexit(saveDefaultsChanges);
#else
on_exit(saveDefaultsChanges, (void *)NULL);
#endif
registeredSaveOnExit = True; registeredSaveOnExit = True;
} }
} }

View File

@@ -163,7 +163,7 @@ dnl not used anywhere
AC_FUNC_MEMCMP AC_FUNC_MEMCMP
AC_FUNC_VPRINTF AC_FUNC_VPRINTF
AC_CHECK_FUNCS(gethostname select poll strcasecmp strncasecmp \ AC_CHECK_FUNCS(gethostname select poll strcasecmp strncasecmp \
setsid atexit mallinfo mkstemp sysconf) setsid mallinfo mkstemp sysconf)
dnl Check for strlcat/strlcpy dnl Check for strlcat/strlcpy
dnl ========================= dnl =========================