]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
app-layer/events: remove unused function
authorVictor Julien <vjulien@oisf.net>
Wed, 27 Apr 2022 14:47:12 +0000 (16:47 +0200)
committerVictor Julien <vjulien@oisf.net>
Mon, 9 May 2022 14:06:39 +0000 (16:06 +0200)
src/app-layer-events.c
src/app-layer-events.h

index 6d1842df252074b93eb9bcf16755f7367979ba15..8b14f361f408198efb477f109fce44a7ea48d418 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 2014 Open Information Security Foundation
+/* Copyright (C) 2014-2022 Open Information Security Foundation
  *
  * You can copy, redistribute or modify this Program under the terms of
  * the GNU General Public License version 2 as published by the Free
@@ -120,24 +120,6 @@ void AppLayerDecoderEventsSetEventRaw(AppLayerDecoderEvents **sevents, uint8_t e
     (*sevents)->events[(*sevents)->cnt++] = event;
 }
 
-/**
- * \brief Set an app layer decoder event.
- *
- * \param f            Pointer to a flow containing DecoderEvents pointer head.  If
- *                     the head points to a DecoderEvents instance, a
- *                     new instance would be created and the pointer head would
- *                     would be updated with this new instance
- * \param event        The event to be stored.
- */
-void AppLayerDecoderEventsSetEvent(Flow *f, uint8_t event)
-{
-    AppLayerDecoderEvents *events = AppLayerParserGetDecoderEvents(f->alparser);
-    AppLayerDecoderEvents *new = events;
-    AppLayerDecoderEventsSetEventRaw(&events, event);
-    if (events != new)
-        AppLayerParserSetDecoderEvents(f->alparser, events);
-}
-
 void AppLayerDecoderEventsResetEvents(AppLayerDecoderEvents *events)
 {
     if (events != NULL)
index 2ea0b1cb06a707a5457d239d21940855a888f27a..7e0a4a087ada300545add2cef933e218a6de269f 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 2014 Open Information Security Foundation
+/* Copyright (C) 2014-2022 Open Information Security Foundation
  *
  * You can copy, redistribute or modify this Program under the terms of
  * the GNU General Public License version 2 as published by the Free
@@ -63,7 +63,6 @@ int AppLayerGetPktEventInfo(const char *event_name, int *event_id);
 int AppLayerGetEventInfoById(int event_id, const char **event_name,
                              AppLayerEventType *event_type);
 void AppLayerDecoderEventsSetEventRaw(AppLayerDecoderEvents **sevents, uint8_t event);
-void AppLayerDecoderEventsSetEvent(Flow *f, uint8_t event);
 
 static inline int AppLayerDecoderEventsIsEventSet(AppLayerDecoderEvents *devents,
                                                   uint8_t event)