summaryrefslogtreecommitdiff
path: root/src/unit.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-08-11 23:19:04 +0200
committerLennart Poettering <lennart@poettering.net>2010-08-11 23:19:04 +0200
commit1e59887dc92e163163051e627817e1675374cd22 (patch)
tree5d5364029f749f08670e6ef272fbf6287b9780cd /src/unit.c
parente51bc1a23e8f581e4fe46aa4df1bd93b7042c184 (diff)
gc: remove a lot of unused code
Diffstat (limited to 'src/unit.c')
-rw-r--r--src/unit.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/src/unit.c b/src/unit.c
index 3c2e974163..59776c33e4 100644
--- a/src/unit.c
+++ b/src/unit.c
@@ -722,16 +722,6 @@ int unit_load_fragment_and_dropin_optional(Unit *u) {
return 0;
}
-/* Common implementation for multiple backends */
-int unit_load_nop(Unit *u) {
- assert(u);
-
- if (u->meta.load_state == UNIT_STUB)
- u->meta.load_state = UNIT_LOADED;
-
- return 0;
-}
-
int unit_load(Unit *u) {
int r;
@@ -2124,20 +2114,6 @@ Unit *unit_following(Unit *u) {
return NULL;
}
-static const char* const unit_type_table[_UNIT_TYPE_MAX] = {
- [UNIT_SERVICE] = "service",
- [UNIT_TIMER] = "timer",
- [UNIT_SOCKET] = "socket",
- [UNIT_TARGET] = "target",
- [UNIT_DEVICE] = "device",
- [UNIT_MOUNT] = "mount",
- [UNIT_AUTOMOUNT] = "automount",
- [UNIT_SNAPSHOT] = "snapshot",
- [UNIT_SWAP] = "swap"
-};
-
-DEFINE_STRING_TABLE_LOOKUP(unit_type, UnitType);
-
static const char* const unit_load_state_table[_UNIT_LOAD_STATE_MAX] = {
[UNIT_STUB] = "stub",
[UNIT_LOADED] = "loaded",