From 702d4e6f14b0c92f7325fcdc3650c79c2221849e Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 13 Nov 2015 18:48:42 +0100 Subject: core: now that .snapshot unit are gone, we don't need the per-type .no_gc bool anymore --- src/core/unit.c | 3 --- src/core/unit.h | 3 --- 2 files changed, 6 deletions(-) (limited to 'src/core') diff --git a/src/core/unit.c b/src/core/unit.c index a5872ef30a..d199d87bf8 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 14e3072146..bcf41d2348 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; }; -- cgit v1.2.3-54-g00ecf