From b878f3d85137093b32cfa2833584396528b49335 Mon Sep 17 00:00:00 2001 From: Sascha Kruse Date: Mon, 3 Oct 2011 21:14:05 +0200 Subject: [PATCH] removed unused _do_replace(...) function --- dunst.c | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/dunst.c b/dunst.c index 3fe4248..6ea8539 100644 --- a/dunst.c +++ b/dunst.c @@ -361,23 +361,6 @@ char } -char * -_do_replace(char *buf, char *replace_buf, const char *to_replace, const char *replacement) { - char *replace_buf_old = strdup(replace_buf); - if(strstr(replace_buf, to_replace)) { - if(strlen(replacement) > 0) { - replace_buf = string_replace("%{", "", replace_buf); - - replace_buf = string_replace(to_replace, replacement, replace_buf); - replace_buf[strlen(replace_buf)-1] = '\0'; - buf = string_replace(replace_buf_old, replace_buf, buf); - } else { - buf = string_replace(replace_buf, "", buf); - } - } - return buf; -} - void handleXEvents(void) { XEvent ev;