separator: kill that useless thing
authordrkhsh <me@drkhsh.at>
Thu, 27 Oct 2022 20:14:20 +0000 (22:14 +0200)
committerdrkhsh <me@drkhsh.at>
Thu, 27 Oct 2022 23:00:40 +0000 (01:00 +0200)
Just use the format strings dude. :)

Makefile
components/separator.c [deleted file]
config.def.h
slstatus.h

index 542b1f0563eead0f26ba43eff4ddaf8c356cb90b..3be46cc64046cdd774e6948fb05995d8dc4f30ce 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -21,7 +21,6 @@ COM =\
        components/num_files\
        components/ram\
        components/run_command\
-       components/separator\
        components/swap\
        components/temperature\
        components/uptime\
diff --git a/components/separator.c b/components/separator.c
deleted file mode 100644 (file)
index 39a594a..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-/* See LICENSE file for copyright and license details. */
-#include <stdio.h>
-
-#include "../util.h"
-#include "../slstatus.h"
-
-const char *
-separator(const char *separator)
-{
-    return separator;
-}
index f76b60cd5f71374b698d351f4cb82d7dfc8c341e..5f6c11449bd455a3518fbf463d03b24f62841bfc 100644 (file)
@@ -45,7 +45,6 @@ static const char unknown_str[] = "n/a";
  * ram_total           total memory size in GB         NULL
  * ram_used            used memory in GB               NULL
  * run_command         custom shell command            command (echo foo)
- * separator           string to echo                  NULL
  * swap_free           free swap in GB                 NULL
  * swap_perc           swap usage in percent           NULL
  * swap_total          total swap size in GB           NULL
index 95e52ce7ed255ae52446b59882623485572ea38c..f3b4979cc9ae66638890e6b85cf2fe0f4a9d85ec 100644 (file)
@@ -56,9 +56,6 @@ const char *ram_used(const char *unused);
 /* run_command */
 const char *run_command(const char *cmd);
 
-/* separator */
-const char *separator(const char *separator);
-
 /* swap */
 const char *swap_free(const char *unused);
 const char *swap_perc(const char *unused);