core: remove systemd_running_as lookup functions
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 7 Jan 2014 02:26:20 +0000 (21:26 -0500)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 19 Jul 2014 19:44:50 +0000 (15:44 -0400)
They are unused and unlikely to ever be.

src/shared/path-lookup.c
src/shared/path-lookup.h
src/test/test-tables.c

index 7d53d85..46cfc12 100644 (file)
 #include "path-util.h"
 #include "path-lookup.h"
 
-static const char* const systemd_running_as_table[_SYSTEMD_RUNNING_AS_MAX] = {
-        [SYSTEMD_SYSTEM] = "system",
-        [SYSTEMD_USER] = "user"
-};
-
-DEFINE_STRING_TABLE_LOOKUP(systemd_running_as, SystemdRunningAs);
-
 int user_config_home(char **config_home) {
         const char *e;
         char *r;
index 4c77bee..2fe8173 100644 (file)
@@ -40,9 +40,6 @@ typedef enum SystemdRunningAs {
 
 #define _cleanup_lookup_paths_free_ _cleanup_(lookup_paths_free)
 
-const char* systemd_running_as_to_string(SystemdRunningAs i) _const_;
-SystemdRunningAs systemd_running_as_from_string(const char *s) _pure_;
-
 int user_config_home(char **config_home);
 
 int lookup_paths_init(LookupPaths *p,
index 9fc4d93..cb9185e 100644 (file)
@@ -104,7 +104,6 @@ int main(int argc, char **argv) {
         test_table(swap_exec_command, SWAP_EXEC_COMMAND);
         test_table(swap_result, SWAP_RESULT);
         test_table(swap_state, SWAP_STATE);
-        test_table(systemd_running_as, SYSTEMD_RUNNING_AS);
         test_table(target_state, TARGET_STATE);
         test_table(timer_base, TIMER_BASE);
         test_table(timer_result, TIMER_RESULT);