commit c46c1487a986496dd813ec52e17e5bf9ba10fd84
Author:     drkhsh <[email protected]>
AuthorDate: Thu Oct 27 22:14:20 2022 +0200
Commit:     drkhsh <[email protected]>
CommitDate: Fri Oct 28 01:00:40 2022 +0200

    separator: kill that useless thing
    
    Just use the format strings dude. :)

diff --git a/Makefile b/Makefile
index 542b1f0..3be46cc 100644
--- 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
index 39a594a..0000000
--- a/components/separator.c
+++ /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;
-}
diff --git a/config.def.h b/config.def.h
index f76b60c..5f6c114 100644
--- a/config.def.h
+++ b/config.def.h
@@ -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
diff --git a/slstatus.h b/slstatus.h
index 95e52ce..f3b4979 100644
--- a/slstatus.h
+++ b/slstatus.h
@@ -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);

Reply via email to