mirror of
https://github.com/systemd/systemd.git
synced 2025-01-20 23:44:10 +08:00
core: remove systemd_running_as lookup functions
They are unused and unlikely to ever be.
This commit is contained in:
parent
91a81d93b5
commit
69a67d6aae
@ -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;
|
||||
|
@ -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,
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user