From 897e7cdd6a523aecd87fc03b04899198f38332aa Mon Sep 17 00:00:00 2001 From: Jason Ish Date: Fri, 4 Oct 2024 16:27:28 -0600 Subject: [PATCH] lib: remove SCRunModeLibDestroyWorker This was a one line wrapper around SCTmThreadsSlotPktAcqLoopFinish, so library users can call that directly instead. Ticket: #7240 --- src/runmode-lib.c | 6 ------ src/runmode-lib.h | 3 --- 2 files changed, 9 deletions(-) diff --git a/src/runmode-lib.c b/src/runmode-lib.c index 94ed43b834..c094f6f868 100644 --- a/src/runmode-lib.c +++ b/src/runmode-lib.c @@ -104,9 +104,3 @@ int SCRunModeLibSpawnWorker(void *td) TmThreadsSetFlag(tv, THV_RUNNING); return 0; } - -/** \brief destroy a worker thread */ -void SCRunModeLibDestroyWorker(void *td) -{ - SCTmThreadsSlotPktAcqLoopFinish((ThreadVars *)td); -} diff --git a/src/runmode-lib.h b/src/runmode-lib.h index 0e37d3db48..f6e5ff65fb 100644 --- a/src/runmode-lib.h +++ b/src/runmode-lib.h @@ -57,7 +57,4 @@ ThreadVars *SCRunModeLibCreateThreadVars(int worker_id); */ int SCRunModeLibSpawnWorker(void *); -/** \brief destroy a worker thread */ -void SCRunModeLibDestroyWorker(void *); - #endif /* SURICATA_RUNMODE_LIB_H */ -- 2.47.3