From: Jason Ish Date: Fri, 4 Oct 2024 22:27:28 +0000 (-0600) Subject: lib: remove SCRunModeLibDestroyWorker X-Git-Tag: suricata-8.0.0-beta1~137 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=897e7cdd6a523aecd87fc03b04899198f38332aa;p=thirdparty%2Fsuricata.git lib: remove SCRunModeLibDestroyWorker This was a one line wrapper around SCTmThreadsSlotPktAcqLoopFinish, so library users can call that directly instead. Ticket: #7240 --- 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 */