From e7b52010168a5b26a0d18500edd731f234b17646 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Wed, 25 Nov 2020 09:49:54 +0100 Subject: [PATCH] detect/mpm: remove usused cleanup function --- src/detect-engine-mpm.c | 6 ------ src/detect-engine-mpm.h | 2 -- 2 files changed, 8 deletions(-) diff --git a/src/detect-engine-mpm.c b/src/detect-engine-mpm.c index c764b06024..5c99e3386a 100644 --- a/src/detect-engine-mpm.c +++ b/src/detect-engine-mpm.c @@ -655,12 +655,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); diff --git a/src/detect-engine-mpm.h b/src/detect-engine-mpm.h index 819b8fca1a..4751808474 100644 --- a/src/detect-engine-mpm.h +++ b/src/detect-engine-mpm.h @@ -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); -- 2.47.2