core/scope: drop effectively unused unit_watch_pidref() calls

Follow-up for 495e75ed5c

The mentioned commit switched scope unit's "pids" deserialization
to call unit_watch_pid() already, meaning all later invocations
in scope_coldplug() are no-op. Remove the cruft altogether.
This commit is contained in:
Mike Yuan
2025-07-11 21:58:51 +02:00
parent f22187bd7e
commit 4db4641a65
-9
View File
@@ -236,15 +236,6 @@ static int scope_coldplug(Unit *u) {
if (r < 0)
return r;
if (!IN_SET(s->deserialized_state, SCOPE_DEAD, SCOPE_FAILED) && u->pids) {
PidRef *pid;
SET_FOREACH(pid, u->pids) {
r = unit_watch_pidref(u, pid, /* exclusive= */ false);
if (r < 0)
return r;
}
}
bus_scope_track_controller(s);
scope_set_state(s, s->deserialized_state);