core: remove systemd_running_as lookup functions

They are unused and unlikely to ever be.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2014-01-06 21:26:20 -05:00
parent 91a81d93b5
commit 69a67d6aae
3 changed files with 0 additions and 11 deletions

View File

@ -32,13 +32,6 @@
#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;

View 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,

View 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);