[dev] [PATCH] Remove dead code.

From: Markus Teich <markus.teich_AT_stusta.mhn.de>
Date: Sat, 21 Jun 2014 11:07:32 +0200

If (nclients == 0), then also (c < 0 || c >= nclients), so the two lines cannot
be reached.
---
Heyho,
from the three lines of context in the diff it may not be clear. There is an
if(c < 0 || c >= nclients) {
	drawbar();
	XSync(dpy, False);
	return;
}
in front of it.
--Markus
 tabbed.c | 3 ---
 1 file changed, 3 deletions(-)
diff --git a/tabbed.c b/tabbed.c
index ba22f9a..cbdaa1f 100644
--- a/tabbed.c
+++ b/tabbed.c
_AT_@ -1088,9 +1088,6 @@ unmanage(int c) {
 		return;
 	}
 
-	if(!nclients)
-		return;
-
 	if(c == 0) {
 		/* First client. */
 		nclients--;
-- 
1.8.5.5
Received on Sat Jun 21 2014 - 11:07:32 CEST

This archive was generated by hypermail 2.3.0 : Sat Jun 21 2014 - 11:12:08 CEST