]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
app-layer: remove IsTxEventAware: never used
authorJason Ish <jason.ish@oisf.net>
Tue, 16 Nov 2021 22:35:29 +0000 (16:35 -0600)
committerVictor Julien <vjulien@oisf.net>
Mon, 22 Nov 2021 09:24:05 +0000 (10:24 +0100)
The function AppLayerParserProtocolIsTxEventAware is not used so
remove.

src/app-layer-parser.c
src/app-layer-parser.h

index 106d8fb00eca3f0811a30bff0ac08ae7c6e0a1b3..d93494c4cfb4bb7a13e054e31de91b4e7e4b4726 100644 (file)
@@ -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();
index 7624a2e769f0270277e0d3d90334e8f1805b90f0..d7558c5d136d341646dc813bcab62578d21a0860 100644 (file)
@@ -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);