From: Lennart Poettering Date: Fri, 13 Nov 2015 17:48:42 +0000 (+0100) Subject: core: now that .snapshot unit are gone, we don't need the per-type .no_gc bool anymore X-Git-Tag: v228~16^2~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=702d4e6f14b0c92f7325fcdc3650c79c2221849e;p=thirdparty%2Fsystemd.git core: now that .snapshot unit are gone, we don't need the per-type .no_gc bool anymore --- diff --git a/src/core/unit.c b/src/core/unit.c index a5872ef30a0..d199d87bf80 100644 --- a/src/core/unit.c +++ b/src/core/unit.c @@ -317,9 +317,6 @@ bool unit_check_gc(Unit *u) { if (state != UNIT_INACTIVE) return true; - if (UNIT_VTABLE(u)->no_gc) - return true; - if (u->no_gc) return true; diff --git a/src/core/unit.h b/src/core/unit.h index 14e30721464..bcf41d2348d 100644 --- a/src/core/unit.h +++ b/src/core/unit.h @@ -403,9 +403,6 @@ struct UnitVTable { /* Instances make no sense for this type */ bool no_instances:1; - /* Exclude from automatic gc */ - bool no_gc:1; - /* True if transient units of this type are OK */ bool can_transient:1; };