summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Chausse <benjamin@chausse.xyz>2024-01-31 19:32:16 -0500
committerBenjamin Chausse <benjamin@chausse.xyz>2024-01-31 19:32:16 -0500
commitdef14f9db47db98ab30040358eff5c10e5f0e843 (patch)
tree9fbfaf293c25ad7807740147b0ba8c2308d17d39
parent6964a0b8c67e7de6e920bb9521cb283207c43522 (diff)
Remove PERTAG compile condition flags (not needed)
-rw-r--r--vanitygaps.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/vanitygaps.c b/vanitygaps.c
index 6daaf22..da140c8 100644
--- a/vanitygaps.c
+++ b/vanitygaps.c
@@ -18,11 +18,6 @@ static void getgaps(Monitor *m, int *oh, int *ov, int *ih, int *iv, unsigned int
static void getfacts(Monitor *m, int msize, int ssize, float *mf, float *sf, int *mr, int *sr);
static void setgaps(int oh, int ov, int ih, int iv);
-/* Settings */
-#if !PERTAG_PATCH
-static int enablegaps = 1;
-#endif // PERTAG_PATCH
-
void
setgaps(int oh, int ov, int ih, int iv)
{
@@ -41,11 +36,7 @@ setgaps(int oh, int ov, int ih, int iv)
void
togglegaps(const Arg *arg)
{
- #if PERTAG_PATCH
- selmon->pertag->enablegaps[selmon->pertag->curtag] = !selmon->pertag->enablegaps[selmon->pertag->curtag];
- #else
enablegaps = !enablegaps;
- #endif // PERTAG_PATCH
arrange(NULL);
}
@@ -136,11 +127,7 @@ void
getgaps(Monitor *m, int *oh, int *ov, int *ih, int *iv, unsigned int *nc)
{
unsigned int n, oe, ie;
- #if PERTAG_PATCH
- oe = ie = selmon->pertag->enablegaps[selmon->pertag->curtag];
- #else
oe = ie = enablegaps;
- #endif // PERTAG_PATCH
Client *c;
for (n = 0, c = nexttiled(m->clients); c; c = nexttiled(c->next), n++);