chiark / gitweb /
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 7d53d859b6b33c91b04bc434e857bf088a65cb23..46cfc12d7d8ce0c70758b033c5ef7fa1f5fae055 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 4c77bee39382d614ddfb77ddb220604f32c65c01..2fe8173f442336004f8f725aeb200087dd523d63 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 9fc4d93725f64ac6275101c979a19be000dfd3f4..cb9185e69b4b7a56b99a59fcf3b840304463af82 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);