diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2021-06-08 16:30:44 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2021-06-10 14:17:58 +0200 |
commit | 1085c0eb692623a4398df80a45f99ea2d8031bf7 (patch) | |
tree | d9ec671b851d88a37415923fe64e1f450c2839e4 /src/core/unit.h | |
parent | fe50aae5e15eb267b15a37c0c00a48b29fed8f11 (diff) | |
download | systemd-1085c0eb692623a4398df80a45f99ea2d8031bf7.tar.gz |
core/serialization: drop misleadingly-named unit_can_serialize()
All unit types can be serialized. This function was really checking whether the
unit type has custom serialization/deserialization code. But we don't need a
function for this.
Also, the check that both .serialize() and .deserialize_item() are defined is
better written as an assert. Not we have a function which would skip
serialization/deserializaton for the unit if we forgot to set either of the
fields.
Diffstat (limited to 'src/core/unit.h')
-rw-r--r-- | src/core/unit.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/core/unit.h b/src/core/unit.h index 52feb3693b..3b302e7e20 100644 --- a/src/core/unit.h +++ b/src/core/unit.h @@ -814,8 +814,6 @@ char *unit_dbus_path_invocation_id(Unit *u); int unit_load_related_unit(Unit *u, const char *type, Unit **_found); -bool unit_can_serialize(Unit *u) _pure_; - int unit_add_node_dependency(Unit *u, const char *what, UnitDependency d, UnitDependencyMask mask); int unit_add_blockdev_dependency(Unit *u, const char *what, UnitDependencyMask mask); |