diff --git a/dwm.c b/dwm.c index ba4f811..50304c4 100644 --- a/dwm.c +++ b/dwm.c @@ -162,7 +162,6 @@ static Monitor *createmon(void); static void destroynotify(XEvent *e); static void detach(Client *c); static void detachstack(Client *c); -static Monitor *dirtomon(int dir); static void drawbar(Monitor *m); static void drawbars(void); static int drawstatusbar(Monitor *m, int bh, int extra, char* text); @@ -684,21 +683,6 @@ detachstack(Client *c) } } -Monitor * -dirtomon(int dir) -{ - Monitor *m = NULL; - - if (dir > 0) { - if (!(m = selmon->next)) - m = mons; - } else if (selmon == mons) - for (m = mons; m->next; m = m->next); - else - for (m = mons; m->next != selmon; m = m->next); - return m; -} - int drawstatusbar(Monitor *m, int bh, int extra, char* stext) { int ret, i, w, x, len;