X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Funit.c;h=59776c33e48e7a4def9382c68ff3175e72e162ee;hp=3c2e974163e504c2617c5f3096cfa259ec8a3b50;hb=1e59887dc92e163163051e627817e1675374cd22;hpb=e51bc1a23e8f581e4fe46aa4df1bd93b7042c184;ds=sidebyside diff --git a/src/unit.c b/src/unit.c index 3c2e97416..59776c33e 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",