From cd9054280b173c0e94542ce48e1f961cf1cbf389 Mon Sep 17 00:00:00 2001 From: DarthMooMancer Date: Sat, 13 Sep 2025 01:07:50 -0400 Subject: [PATCH] removing unused functions --- .config/suckless/dwm/dwm.c | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/.config/suckless/dwm/dwm.c b/.config/suckless/dwm/dwm.c index 6f4065b..299605c 100644 --- a/.config/suckless/dwm/dwm.c +++ b/.config/suckless/dwm/dwm.c @@ -142,7 +142,6 @@ static int getrootptr(int *x, int *y); static long getstate(Window w); static int gettextprop(Window w, Atom atom, char *text, unsigned int size); static void grabkeys(void); -static void incnmaster(const Arg *arg); static void keypress(XEvent *e); static void killclient(const Arg *arg); static void manage(Window w, XWindowAttributes *wa); @@ -169,7 +168,6 @@ static void showhide(Client *c); static void spawn(const Arg *arg); static void tag(const Arg *arg); static void tile(Monitor *m); -static void togglefloating(const Arg *arg); static void toggletag(const Arg *arg); static void toggleview(const Arg *arg); static void unfocus(Client *c, int setfocus); @@ -832,13 +830,6 @@ grabkeys(void) } } -void -incnmaster(const Arg *arg) -{ - selmon->nmaster = MAX(selmon->nmaster + arg->i, 0); - arrange(selmon); -} - void keypress(XEvent *e) { @@ -1378,20 +1369,6 @@ tile(Monitor *m) } } -void -togglefloating(const Arg *arg) -{ - if (!selmon->sel) - return; - if (selmon->sel->isfullscreen) /* no support for fullscreen windows */ - return; - selmon->sel->isfloating = !selmon->sel->isfloating || selmon->sel->isfixed; - if (selmon->sel->isfloating) - resize(selmon->sel, selmon->sel->x, selmon->sel->y, - selmon->sel->w, selmon->sel->h, 0); - arrange(selmon); -} - void toggletag(const Arg *arg) {