Remove DEBUG statements, #if 0 etc

...and some other cleanups.
This commit is contained in:
Carlos R. Mafra
2010-03-20 18:42:56 +01:00
parent cef4fbb422
commit 5178465bb6
21 changed files with 34 additions and 576 deletions
-13
View File
@@ -97,11 +97,6 @@ void RemakeStackList(WScreen * scr)
WMSetInBag(scr->stacking_list, level, frame);
}
XFree(windows);
#ifdef DEBUG
if (c != scr->window_count) {
puts("Found different number of windows than in window lists!!!");
}
#endif
scr->window_count = c;
}
@@ -132,14 +127,6 @@ void CommitStacking(WScreen * scr)
i = 0;
WM_ETARETI_BAG(scr->stacking_list, tmp, iter) {
while (tmp) {
#ifdef DEBUG
if (i >= nwindows) {
puts("Internal inconsistency! window_count is incorrect!!!");
printf("window_count says %i windows\n", nwindows);
wfree(windows);
return;
}
#endif
windows[i++] = tmp->window;
tmp = tmp->stacking->under;
}