Skip to content

Commit

Permalink
remove unnecessary API
Browse files Browse the repository at this point in the history
  • Loading branch information
alandekok committed Jan 3, 2020
1 parent c488a79 commit 39e00e2
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 15 deletions.
2 changes: 1 addition & 1 deletion src/lib/io/schedule.c
Expand Up @@ -203,7 +203,7 @@ static void *fr_schedule_worker_thread(void *arg)
cs = cf_section_find(sc->cs, "worker", buffer);
if (!cs) cs = cf_section_find(sc->cs, "worker", NULL);

if (sc->worker_thread_instantiate(sw->ctx, fr_worker_el(sw->worker), cs) < 0) {
if (sc->worker_thread_instantiate(sw->ctx, sw->el, cs) < 0) {
ERROR("Worker %d - Failed calling thread instantiate: %s", sw->id, fr_strerror());
goto fail;
}
Expand Down
12 changes: 0 additions & 12 deletions src/lib/io/worker.c
Expand Up @@ -1112,18 +1112,6 @@ fr_worker_t *fr_worker_create(TALLOC_CTX *ctx, char const *name, fr_event_list_t
return worker;
}

/** Get the event loop for the worker
*
* @param[in] worker the worker data structure
* @return kq
*/
fr_event_list_t *fr_worker_el(fr_worker_t *worker)
{
WORKER_VERIFY;

return worker->el;
}


/** The main loop and entry point of the worker thread.
*
Expand Down
2 changes: 0 additions & 2 deletions src/lib/io/worker.h
Expand Up @@ -60,8 +60,6 @@ fr_worker_t *fr_worker_create(TALLOC_CTX *ctx, char const *name, fr_event_list_t

void fr_worker_destroy(fr_worker_t *worker) CC_HINT(nonnull);

fr_event_list_t *fr_worker_el(fr_worker_t *worker) CC_HINT(nonnull);

void fr_worker(fr_worker_t *worker) CC_HINT(nonnull);

void fr_worker_debug(fr_worker_t *worker, FILE *fp) CC_HINT(nonnull);
Expand Down

0 comments on commit 39e00e2

Please sign in to comment.