From c0f391e648f52cd9b8fa6e534a2f97a8ba0f46a9 Mon Sep 17 00:00:00 2001 From: Wynn Wolf Arbor Date: Wed, 18 Mar 2020 19:46:53 +0100 Subject: Remove wm menu Whilst arguably useful for certain people, or in rare cases, this functionality is not needed in the general case. This will also remove a memory leak where fallback was not properly freed. --- util.c | 24 ------------------------ 1 file changed, 24 deletions(-) (limited to 'util.c') diff --git a/util.c b/util.c index fda3a37..75b97f0 100644 --- a/util.c +++ b/util.c @@ -84,30 +84,6 @@ u_exec(char *argstr) warn("%s", s); } -char * -u_argv(char * const *argv) -{ - size_t siz = 0; - int i; - char *p; - - if (argv == 0) - return NULL; - - for (i = 0; argv[i]; i++) - siz += strlen(argv[i]) + 1; - if (siz == 0) - return NULL; - - p = xmalloc(siz); - strlcpy(p, argv[0], siz); - for (i = 1; argv[i]; i++) { - strlcat(p, " ", siz); - strlcat(p, argv[i], siz); - } - return p; -} - static void log_msg(const char *msg, va_list ap) { -- cgit v1.2.3-2-gb3c3