From 6367bf523432adccce0562ebd5069faa65f9683e Mon Sep 17 00:00:00 2001 From: "Carlos R. Mafra" Date: Thu, 4 Feb 2010 21:41:34 +0100 Subject: [PATCH] Remove HEARTBEAT #ifdef's --- src/defaults.c | 12 ------------ src/window.h | 6 ------ 2 files changed, 18 deletions(-) diff --git a/src/defaults.c b/src/defaults.c index 79dc33e9..8108c98e 100644 --- a/src/defaults.c +++ b/src/defaults.c @@ -906,13 +906,7 @@ void wDefaultsCheckDomains(void) WMPropList *dict; int i; -#ifdef HEARTBEAT - puts("Checking domains..."); -#endif if (stat(WDWindowMaker->path, &stbuf) >= 0 && WDWindowMaker->timestamp < stbuf.st_mtime) { -#ifdef HEARTBEAT - puts("Checking WindowMaker domain"); -#endif WDWindowMaker->timestamp = stbuf.st_mtime; /* global dictionary */ @@ -951,9 +945,6 @@ void wDefaultsCheckDomains(void) } if (stat(WDWindowAttributes->path, &stbuf) >= 0 && WDWindowAttributes->timestamp < stbuf.st_mtime) { -#ifdef HEARTBEAT - puts("Checking WMWindowAttributes domain"); -#endif /* global dictionary */ shared_dict = readGlobalDomain("WMWindowAttributes", True); /* user dictionary */ @@ -1008,9 +999,6 @@ void wDefaultsCheckDomains(void) if (stat(WDRootMenu->path, &stbuf) >= 0 && WDRootMenu->timestamp < stbuf.st_mtime) { dict = WMReadPropListFromFile(WDRootMenu->path); -#ifdef HEARTBEAT - puts("Checking WMRootMenu domain"); -#endif if (dict) { if (!WMIsPLArray(dict) && !WMIsPLString(dict)) { WMReleasePropList(dict); diff --git a/src/window.h b/src/window.h index c212b827..12834c36 100644 --- a/src/window.h +++ b/src/window.h @@ -156,9 +156,6 @@ typedef struct { unsigned int SAVE_YOURSELF:1; /* WindowMaker specific */ unsigned int MINIATURIZE_WINDOW:1; -#ifdef MONITOR_HEARTBEAT - unsigned int HEARTBEAT:1; -#endif } WProtocols; @@ -243,9 +240,6 @@ typedef struct WWindow { long event_mask; /* the event mask thats selected */ -#ifdef MONITOR_HEARTBEAT - time_t last_beat; -#endif struct { /* state flags */ unsigned int mapped:1;