svc: Remove unused function, svc_foreach_dynamic()

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson committed 2017-12-20 09:02:38 +01:00
1 parent 61a9926442
commit a9456cec41
2 files changed
-17

No files matched your search

-16
View File
@@ -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
* @types: Mask of service types
-1
View File
@@ -144,7 +144,6 @@ svc_t *svc_named_iterator (svc_t *iter, char *cmd);
svc_t *svc_job_iterator (svc_t *iter, int job);
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 *));
svc_t *svc_stop_completed (void);