[dwm] [PATCH] dwm: remove unused variable ntiled in showhide()

From: Marc Andre Tanner <mat_AT_brain-dump.org>
Date: Wed, 18 Mar 2009 22:47:45 +0100

Hi,

There seems to be an unused variable in the showhide function.

diff -r ee12ffbf93df dwm.c
--- a/dwm.c Tue Mar 17 19:53:00 2009 +0000
+++ b/dwm.c Wed Mar 18 22:38:57 2009 +0100
@@ -179,7 +179,7 @@
 static void setlayout(const Arg *arg);
 static void setmfact(const Arg *arg);
 static void setup(void);
-static void showhide(Client *c, unsigned int ntiled);
+static void showhide(Client *c);
 static void sigchld(int signal);
 static void spawn(const Arg *arg);
 static void tag(const Arg *arg);
@@ -338,11 +338,7 @@
 
 void
 arrange(void) {
- unsigned int nt;
- Client *c;
-
- for(nt = 0, c = nexttiled(clients); c; c = nexttiled(c->next), nt++);
- showhide(stack, nt);
+ showhide(stack);
         focus(NULL);
         if(lt[sellt]->arrange)
                 lt[sellt]->arrange();
@@ -1330,17 +1326,17 @@
 }
 
 void
-showhide(Client *c, unsigned int ntiled) {
+showhide(Client *c) {
         if(!c)
                 return;
         if(ISVISIBLE(c)) { /* show clients top down */
                 XMoveWindow(dpy, c->win, c->x, c->y);
                 if(!lt[sellt]->arrange || c->isfloating)
                         resize(c, c->x, c->y, c->w, c->h);
- showhide(c->snext, ntiled);
+ showhide(c->snext);
         }
         else { /* hide clients bottom up */
- showhide(c->snext, ntiled);
+ showhide(c->snext);
                 XMoveWindow(dpy, c->win, c->x + 2 * sw, c->y);
         }
 }

-- 
 Marc Andre Tanner >< http://www.brain-dump.org/ >< GPG key: CF7D56C0
Received on Wed Mar 18 2009 - 21:47:45 UTC

This archive was generated by hypermail 2.2.0 : Wed Mar 18 2009 - 22:12:04 UTC