]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
detect/flowbits: remove dead code
authorShivani Bhardwaj <shivanib134@gmail.com>
Tue, 5 Apr 2022 10:36:08 +0000 (16:06 +0530)
committerVictor Julien <vjulien@oisf.net>
Tue, 3 May 2022 07:15:09 +0000 (09:15 +0200)
src/detect-flowbits.c

index 662906435802748d91d5de1a570d20e0a223ae03..fd65f086e4bb0b4c25dd69f174d49bf3050d515e 100644 (file)
@@ -45,9 +45,6 @@
 #include "util-unittest.h"
 #include "util-debug.h"
 
-#define PARSE_REGEX         "^([a-z]+)(?:,\\s*(.*))?"
-static DetectParseRegex parse_regex;
-
 #define MAX_TOKENS 100
 
 int DetectFlowbitMatch (DetectEngineThreadCtx *, Packet *,
@@ -72,8 +69,6 @@ void DetectFlowbitsRegister (void)
 #endif
     /* this is compatible to ip-only signatures */
     sigmatch_table[DETECT_FLOWBITS].flags |= SIGMATCH_IPONLY_COMPAT;
-
-    DetectSetupParseRegexes(PARSE_REGEX, &parse_regex);
 }
 
 static int FlowbitOrAddData(DetectEngineCtx *de_ctx, DetectFlowbitsData *cd, char *arrptr)