]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
detect/mpm: remove usused cleanup function 5609/head
authorVictor Julien <victor@inliniac.net>
Wed, 25 Nov 2020 08:49:54 +0000 (09:49 +0100)
committerVictor Julien <victor@inliniac.net>
Mon, 30 Nov 2020 09:22:32 +0000 (10:22 +0100)
(cherry picked from commit e7b52010168a5b26a0d18500edd731f234b17646)

src/detect-engine-mpm.c
src/detect-engine-mpm.h

index 0edeacbf1648860ec8bddf5374492f9d0e6af583..e5124d6bae65aa3a853d535dfceed61c556c1d84 100644 (file)
@@ -652,12 +652,6 @@ uint16_t PatternMatchDefaultMatcher(void)
     return mpm_algo_val;
 }
 
-/** \brief cleans up the mpm instance after a match */
-void PacketPatternCleanup(DetectEngineThreadCtx *det_ctx)
-{
-    PmqReset(&det_ctx->pmq);
-}
-
 void PatternMatchDestroy(MpmCtx *mpm_ctx, uint16_t mpm_matcher)
 {
     SCLogDebug("mpm_ctx %p, mpm_matcher %"PRIu16"", mpm_ctx, mpm_matcher);
index 457ab7609d2ad02df5b84c0101262dd277f484dc..d385747bc5f55957845fe3a89b06cce80ddce0f2 100644 (file)
@@ -44,8 +44,6 @@ uint32_t PatternStrength(uint8_t *, uint16_t);
 uint16_t PatternMatchDefaultMatcher(void);
 uint32_t DnsQueryPatternSearch(DetectEngineThreadCtx *det_ctx, uint8_t *buffer, uint32_t buffer_len, uint8_t flags);
 
-void PacketPatternCleanup(DetectEngineThreadCtx *);
-
 void PatternMatchPrepare(MpmCtx *, uint16_t);
 void PatternMatchThreadPrepare(MpmThreadCtx *, uint16_t type);