From: Victor Julien Date: Wed, 25 Nov 2020 08:49:54 +0000 (+0100) Subject: detect/mpm: remove usused cleanup function X-Git-Tag: suricata-5.0.5~20 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=62af35b939e901e83ed6dd19a0cc3eeb05ff0bb2;p=thirdparty%2Fsuricata.git detect/mpm: remove usused cleanup function (cherry picked from commit e7b52010168a5b26a0d18500edd731f234b17646) --- diff --git a/src/detect-engine-mpm.c b/src/detect-engine-mpm.c index 0edeacbf16..e5124d6bae 100644 --- a/src/detect-engine-mpm.c +++ b/src/detect-engine-mpm.c @@ -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); diff --git a/src/detect-engine-mpm.h b/src/detect-engine-mpm.h index 457ab7609d..d385747bc5 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);