systemctl: drop unnecessary shortcut for removed SysV compat support

Follow-up for 986fee6217.
This commit is contained in:
Yu Watanabe
2026-01-18 15:48:02 +09:00
parent 01885138be
commit a3f0d88fee
-9
View File
@@ -96,15 +96,6 @@ int verb_enable(int argc, char *argv[], void *userdata) {
if (r < 0)
return r;
/* If the operation was fully executed by the SysV compat, let's finish early */
if (strv_isempty(names)) {
if (arg_no_reload || install_client_side() != INSTALL_CLIENT_SIDE_NO)
return 0;
r = daemon_reload(ACTION_RELOAD, /* graceful= */ false);
return r > 0 ? 0 : r;
}
if (streq(verb, "disable"))
r = normalize_names(names);
else if (streq(verb, "link"))