From: Victor Julien Date: Sat, 15 Oct 2022 14:05:58 +0000 (+0200) Subject: detect: remove unused function X-Git-Tag: suricata-7.0.0-beta1~65 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=60285a629f7a51759e2b64e99135bff27035a1f6;p=thirdparty%2Fsuricata.git detect: remove unused function --- 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__ */