mirror of
https://github.com/systemd/systemd.git
synced 2024-11-07 09:56:51 +03:00
manager: remove unused function
This commit is contained in:
parent
e296313f7b
commit
74165387ee
@ -3013,30 +3013,6 @@ void manager_status_printf(Manager *m, StatusType type, const char *status, cons
|
||||
va_end(ap);
|
||||
}
|
||||
|
||||
int manager_get_unit_by_path(Manager *m, const char *path, const char *suffix, Unit **_found) {
|
||||
_cleanup_free_ char *p = NULL;
|
||||
Unit *found;
|
||||
int r;
|
||||
|
||||
assert(m);
|
||||
assert(path);
|
||||
assert(suffix);
|
||||
assert(_found);
|
||||
|
||||
r = unit_name_from_path(path, suffix, &p);
|
||||
if (r < 0)
|
||||
return r;
|
||||
|
||||
found = manager_get_unit(m, p);
|
||||
if (!found) {
|
||||
*_found = NULL;
|
||||
return 0;
|
||||
}
|
||||
|
||||
*_found = found;
|
||||
return 1;
|
||||
}
|
||||
|
||||
Set *manager_get_units_requiring_mounts_for(Manager *m, const char *path) {
|
||||
char p[strlen(path)+1];
|
||||
|
||||
|
@ -322,8 +322,6 @@ int manager_startup(Manager *m, FILE *serialization, FDSet *fds);
|
||||
Job *manager_get_job(Manager *m, uint32_t id);
|
||||
Unit *manager_get_unit(Manager *m, const char *name);
|
||||
|
||||
int manager_get_unit_by_path(Manager *m, const char *path, const char *suffix, Unit **_found);
|
||||
|
||||
int manager_get_job_from_dbus_path(Manager *m, const char *s, Job **_j);
|
||||
|
||||
int manager_load_unit_prepare(Manager *m, const char *name, const char *path, sd_bus_error *e, Unit **_ret);
|
||||
|
Loading…
Reference in New Issue
Block a user