From: Victor Julien Date: Wed, 27 Apr 2022 14:52:43 +0000 (+0200) Subject: threads: remove unused function X-Git-Tag: suricata-7.0.0-beta1~614 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e593dda3567bfd2bf80f1cbbe7c4a8ed5910540c;p=thirdparty%2Fsuricata.git threads: remove unused function --- diff --git a/src/tm-threads.c b/src/tm-threads.c index 72fc2fc61e..aa7c7a03d2 100644 --- a/src/tm-threads.c +++ b/src/tm-threads.c @@ -1549,37 +1549,6 @@ again: return; } -TmSlot *TmThreadGetFirstTmSlotForPartialPattern(const char *tm_name) -{ - ThreadVars *tv = NULL; - TmSlot *slots = NULL; - - SCMutexLock(&tv_root_lock); - - /* all receive threads are part of packet processing threads */ - tv = tv_root[TVT_PPT]; - - while (tv) { - slots = tv->tm_slots; - - while (slots != NULL) { - TmModule *tm = TmModuleGetById(slots->tm_id); - - char *found = strstr(tm->name, tm_name); - if (found != NULL) - goto end; - - slots = slots->slot_next; - } - - tv = tv->next; - } - - end: - SCMutexUnlock(&tv_root_lock); - return slots; -} - #define MIN_WAIT_TIME 100 #define MAX_WAIT_TIME 999999 void TmThreadKillThreadsFamily(int family) diff --git a/src/tm-threads.h b/src/tm-threads.h index 91cf9bbb47..372a9be301 100644 --- a/src/tm-threads.h +++ b/src/tm-threads.h @@ -125,7 +125,6 @@ TmEcode TmThreadsSlotVarRun (ThreadVars *tv, Packet *p, TmSlot *slot); ThreadVars *TmThreadsGetTVContainingSlot(TmSlot *); void TmThreadDisablePacketThreads(void); void TmThreadDisableReceiveThreads(void); -TmSlot *TmThreadGetFirstTmSlotForPartialPattern(const char *); uint32_t TmThreadCountThreadsByTmmFlags(uint8_t flags);