From 440e9077fff5b71c416ca651f40fb1dc90d0a186 Mon Sep 17 00:00:00 2001 From: Naz Date: Mon, 12 Jan 2026 18:38:10 +0100 Subject: fix: remove unused functions --- dwm.c | 79 ------------------------------------------------------------------- 1 file changed, 79 deletions(-) diff --git a/dwm.c b/dwm.c index a88f3e4..25e8d9e 100644 --- a/dwm.c +++ b/dwm.c @@ -220,7 +220,6 @@ static Client *prevtiled(Client *c); static void propertynotify(XEvent *e); static void pushdown(const Arg *arg); static void pushup(const Arg *arg); -static void quit(const Arg *arg); static Monitor *recttomon(int x, int y, int w, int h); static void resize(Client *c, int x, int y, int w, int h, int bw, int interact); static void resizeclient(Client *c, int x, int y, int w, int h, int bw); @@ -235,13 +234,7 @@ static void setclientstate(Client *c, long state); static void setfocus(Client *c); static void setfullscreen(Client *c, int fullscreen); static void setgaps(int oh, int ov, int ih, int iv); -static void incrgaps(const Arg *arg); -static void incrigaps(const Arg *arg); static void incrogaps(const Arg *arg); -static void incrohgaps(const Arg *arg); -static void incrovgaps(const Arg *arg); -static void incrihgaps(const Arg *arg); -static void incrivgaps(const Arg *arg); static void togglegaps(const Arg *arg); static void defaultgaps(const Arg *arg); static void setlayout(const Arg *arg); @@ -1553,12 +1546,6 @@ pushup(const Arg *arg) { arrange(selmon); } -void -quit(const Arg *arg) -{ - running = 0; -} - Monitor * recttomon(int x, int y, int w, int h) { @@ -1909,28 +1896,6 @@ defaultgaps(const Arg *arg) setgaps(gappoh, gappov, gappih, gappiv); } -void -incrgaps(const Arg *arg) -{ - setgaps( - selmon->gappoh + arg->i, - selmon->gappov + arg->i, - selmon->gappih + arg->i, - selmon->gappiv + arg->i - ); -} - -void -incrigaps(const Arg *arg) -{ - setgaps( - selmon->gappoh, - selmon->gappov, - selmon->gappih + arg->i, - selmon->gappiv + arg->i - ); -} - void incrogaps(const Arg *arg) { @@ -1942,50 +1907,6 @@ incrogaps(const Arg *arg) ); } -void -incrohgaps(const Arg *arg) -{ - setgaps( - selmon->gappoh + arg->i, - selmon->gappov, - selmon->gappih, - selmon->gappiv - ); -} - -void -incrovgaps(const Arg *arg) -{ - setgaps( - selmon->gappoh, - selmon->gappov + arg->i, - selmon->gappih, - selmon->gappiv - ); -} - -void -incrihgaps(const Arg *arg) -{ - setgaps( - selmon->gappoh, - selmon->gappov, - selmon->gappih + arg->i, - selmon->gappiv - ); -} - -void -incrivgaps(const Arg *arg) -{ - setgaps( - selmon->gappoh, - selmon->gappov, - selmon->gappih, - selmon->gappiv + arg->i - ); -} - void setlayout(const Arg *arg) { -- cgit v1.2.3