]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
threads: remove unused function
authorVictor Julien <vjulien@oisf.net>
Wed, 27 Apr 2022 14:52:43 +0000 (16:52 +0200)
committerVictor Julien <vjulien@oisf.net>
Mon, 9 May 2022 14:06:40 +0000 (16:06 +0200)
src/tm-threads.c
src/tm-threads.h

index 72fc2fc61e3c28ad845099b6e451f0867d27e0f1..aa7c7a03d28c783a7d9e92c6ae37e2a009027600 100644 (file)
@@ -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)
index 91cf9bbb4714f187ca0cf3a37b2170f52b9a8625..372a9be3019afcf4274ece01d920b0e3bef10eb3 100644 (file)
@@ -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);