summaryrefslogtreecommitdiff
path: root/src/shared
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2014-01-06 21:26:20 -0500
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2014-07-19 15:44:50 -0400
commit69a67d6aaec068654c0431e9156a91afcf75b7dd (patch)
tree8cb980f4f0553e07726d92df90166046d8e6bfb5 /src/shared
parent91a81d93b569a98e04566eef1753a0956ba035f3 (diff)
core: remove systemd_running_as lookup functions
They are unused and unlikely to ever be.
Diffstat (limited to 'src/shared')
-rw-r--r--src/shared/path-lookup.c7
-rw-r--r--src/shared/path-lookup.h3
2 files changed, 0 insertions, 10 deletions
diff --git a/src/shared/path-lookup.c b/src/shared/path-lookup.c
index 7d53d859b6..46cfc12d7d 100644
--- a/src/shared/path-lookup.c
+++ b/src/shared/path-lookup.c
@@ -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;
diff --git a/src/shared/path-lookup.h b/src/shared/path-lookup.h
index 4c77bee393..2fe8173f44 100644
--- a/src/shared/path-lookup.h
+++ b/src/shared/path-lookup.h
@@ -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,