core: now that .snapshot unit are gone, we don't need the per-type .no_gc bool anymore
authorLennart Poettering <lennart@poettering.net>
Fri, 13 Nov 2015 17:48:42 +0000 (18:48 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 13 Nov 2015 18:50:52 +0000 (19:50 +0100)
src/core/unit.c
src/core/unit.h

index a5872ef..d199d87 100644 (file)
@@ -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;
 
index 14e3072..bcf41d2 100644 (file)
@@ -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;
 };