From 60285a629f7a51759e2b64e99135bff27035a1f6 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Sat, 15 Oct 2022 16:05:58 +0200 Subject: [PATCH] detect: remove unused function --- src/detect-engine-alert.c | 5 ----- src/detect-engine-alert.h | 1 - 2 files changed, 6 deletions(-) diff --git a/src/detect-engine-alert.c b/src/detect-engine-alert.c index 7cce2a70da..2a4353670d 100644 --- a/src/detect-engine-alert.c +++ b/src/detect-engine-alert.c @@ -55,11 +55,6 @@ void PacketAlertTagInit(void) g_tag_pa.s = &g_tag_signature; } -PacketAlert *PacketAlertGetTag(void) -{ - return &g_tag_pa; -} - /** * \brief Handle a packet and check if needs a threshold logic * Also apply rule action if necessary. diff --git a/src/detect-engine-alert.h b/src/detect-engine-alert.h index ee940c5869..14f5b72ae2 100644 --- a/src/detect-engine-alert.h +++ b/src/detect-engine-alert.h @@ -35,7 +35,6 @@ void AlertQueueAppend(DetectEngineThreadCtx *det_ctx, const Signature *s, Packet void PacketAlertFinalize(DetectEngineCtx *, DetectEngineThreadCtx *, Packet *); int PacketAlertCheck(Packet *, uint32_t); void PacketAlertTagInit(void); -PacketAlert *PacketAlertGetTag(void); void DetectEngineAlertRegisterTests(void); #endif /* __DETECT_ENGINE_ALERT_H__ */