]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
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 a5872ef30a00cc075a0b3fb6767ca60091ab9e83..d199d87bf80bdb42668e029a5fb88bbbc3717850 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 14e307214644755678a5aa49d68c42e62aa1ad6c..bcf41d2348d9053c2b4a45c2a26ff435b94f78d1 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;
 };