From: Jason Ish Date: Tue, 16 Nov 2021 22:35:29 +0000 (-0600) Subject: app-layer: remove IsTxEventAware: never used X-Git-Tag: suricata-7.0.0-beta1~1192 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=55ff912ee7fe81ee221dc62e0b91e28af5a45edf;p=thirdparty%2Fsuricata.git app-layer: remove IsTxEventAware: never used The function AppLayerParserProtocolIsTxEventAware is not used so remove. --- diff --git a/src/app-layer-parser.c b/src/app-layer-parser.c index 106d8fb00e..d93494c4cf 100644 --- a/src/app-layer-parser.c +++ b/src/app-layer-parser.c @@ -1389,14 +1389,6 @@ int AppLayerParserIsEnabled(AppProto alproto) return 0; } -int AppLayerParserProtocolIsTxEventAware(uint8_t ipproto, AppProto alproto) -{ - SCEnter(); - int ipproto_map = FlowGetProtoMapping(ipproto); - int r = (alp_ctx.ctxs[ipproto_map][alproto].StateGetEvents == NULL) ? 0 : 1; - SCReturnInt(r); -} - int AppLayerParserProtocolHasLogger(uint8_t ipproto, AppProto alproto) { SCEnter(); diff --git a/src/app-layer-parser.h b/src/app-layer-parser.h index 7624a2e769..d7558c5d13 100644 --- a/src/app-layer-parser.h +++ b/src/app-layer-parser.h @@ -263,7 +263,6 @@ int AppLayerParserParse(ThreadVars *tv, AppLayerParserThreadCtx *tctx, Flow *f, uint8_t flags, const uint8_t *input, uint32_t input_len); void AppLayerParserSetEOF(AppLayerParserState *pstate); bool AppLayerParserHasDecoderEvents(AppLayerParserState *pstate); -int AppLayerParserProtocolIsTxEventAware(uint8_t ipproto, AppProto alproto); int AppLayerParserProtocolHasLogger(uint8_t ipproto, AppProto alproto); LoggerId AppLayerParserProtocolGetLoggerBits(uint8_t ipproto, AppProto alproto); void AppLayerParserTriggerRawStreamReassembly(Flow *f, int direction);