mirror of
https://github.com/troglobit/finit.git
synced 2026-11-24 20:21:44 +00:00
svc: Remove unused function, svc_foreach_dynamic()
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
61a9926442
commit
a9456cec41
2 files changed
-17
No files matched your search
@@ -227,22 +227,6 @@ void svc_foreach(void (*cb)(svc_t *))
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* svc_foreach_dynamic - Run a callback for each registered dynamic service
|
|
||||||
* @cb: Callback to run for each dynamic service
|
|
||||||
*/
|
|
||||||
void svc_foreach_dynamic(void (*cb)(svc_t *))
|
|
||||||
{
|
|
||||||
svc_t *svc;
|
|
||||||
|
|
||||||
if (!cb)
|
|
||||||
return;
|
|
||||||
|
|
||||||
for (svc = svc_dynamic_iterator(NULL); svc; svc = svc_dynamic_iterator(svc))
|
|
||||||
cb(svc);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* svc_foreach_type - Run a callback for each matching type
|
* svc_foreach_type - Run a callback for each matching type
|
||||||
* @types: Mask of service types
|
* @types: Mask of service types
|
||||||
|
|||||||
@@ -144,7 +144,6 @@ svc_t *svc_named_iterator (svc_t *iter, char *cmd);
|
|||||||
svc_t *svc_job_iterator (svc_t *iter, int job);
|
svc_t *svc_job_iterator (svc_t *iter, int job);
|
||||||
|
|
||||||
void svc_foreach (void (*cb)(svc_t *));
|
void svc_foreach (void (*cb)(svc_t *));
|
||||||
void svc_foreach_dynamic (void (*cb)(svc_t *));
|
|
||||||
void svc_foreach_type (int types, void (*cb)(svc_t *));
|
void svc_foreach_type (int types, void (*cb)(svc_t *));
|
||||||
|
|
||||||
svc_t *svc_stop_completed (void);
|
svc_t *svc_stop_completed (void);
|
||||||
|
|||||||
Reference in new issue
Block a user