aboutsummaryrefslogtreecommitdiff
path: root/dwmblocks.c
diff options
context:
space:
mode:
authoraidan <torrinfail@gmail.com>2020-04-16 01:03:30 -0600
committeraidan <torrinfail@gmail.com>2020-04-16 01:03:30 -0600
commit030de220e4f53b8dbb45da41d2d51c8e26420b66 (patch)
tree990197af5106aeccf9774fe48b73d26948f114c7 /dwmblocks.c
parent003a2238dcb871f2b0f68c1ecfc5268bba5dc92c (diff)
removed unused replace function
Diffstat (limited to 'dwmblocks.c')
-rw-r--r--dwmblocks.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/dwmblocks.c b/dwmblocks.c
index 88bdfb0..2f3b774 100644
--- a/dwmblocks.c
+++ b/dwmblocks.c
@@ -14,7 +14,6 @@ typedef struct {
unsigned int signal;
} Block;
void sighandler(int num);
-void replace(char *str, char old, char new);
void getcmds(int time);
#ifndef __OpenBSD__
void getsigcmds(int signal);
@@ -37,14 +36,6 @@ static char statusstr[2][256];
static int statusContinue = 1;
static void (*writestatus) () = setroot;
-void replace(char *str, char old, char new)
-{
- int N = strlen(str);
- for(int i = 0; i < N; i++)
- if(str[i] == old)
- str[i] = new;
-}
-
//opens process *cmd and stores output in *output
void getcmd(const Block *block, char *output)
{