From 3f743122398a8b747567b3382b4ea099d97e8aef Mon Sep 17 00:00:00 2001 From: BitHeaven Date: Fri, 7 Jun 2024 20:12:21 +0500 Subject: [PATCH] Revome more unused funcs --- dwm.c | 16 ---------------- 1 file changed, 16 deletions(-) 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;