From 66d7f5941a3f01471291b8e38bb52899f33a6fa0 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Tue, 19 Jan 2021 14:22:50 +0100 Subject: [PATCH] detect/fast_pattern: remove dead code --- src/detect-fast-pattern.c | 38 -------------------------------------- 1 file changed, 38 deletions(-) diff --git a/src/detect-fast-pattern.c b/src/detect-fast-pattern.c index 408aafe4b6..dc95308431 100644 --- a/src/detect-fast-pattern.c +++ b/src/detect-fast-pattern.c @@ -70,17 +70,6 @@ int FastPatternSupportEnabledForSigMatchList(const DetectEngineCtx *de_ctx, return 1; return DetectBufferTypeSupportsMpmGetById(de_ctx, list_id); - -#if 0 - SCFPSupportSMList *tmp_smlist_fp = sm_fp_support_smlist_list; - while (tmp_smlist_fp != NULL) { - if (tmp_smlist_fp->list_id == list_id) - return 1; - - tmp_smlist_fp = tmp_smlist_fp->next; - } -#endif - return 0; } /** @@ -148,17 +137,6 @@ void SupportFastPatternForSigMatchTypes(void) SupportFastPatternForSigMatchList(DETECT_SM_LIST_PMATCH, 3); /* other types are handled by DetectMpmAppLayerRegister() */ - -#if 0 - SCFPSupportSMList *tmp = sm_fp_support_smlist_list; - while (tmp != NULL) { - printf("%d - %d\n", tmp->list_id, tmp->priority); - - tmp = tmp->next; - } -#endif - - return; } /** @@ -180,8 +158,6 @@ void DetectFastPatternRegister(void) DetectSetupParseRegexes(PARSE_REGEX, &parse_regex); } -//static int DetectFastPatternParseArg( - /** * \brief Configures the previous content context for a fast_pattern modifier * keyword used in the rule. @@ -334,20 +310,6 @@ static int DetectFastPatternSetup(DetectEngineCtx *de_ctx, Signature *s, const c goto error; } - //int args; - //args = 0; - //printf("ret-%d\n", ret); - //for (args = 0; args < ret; args++) { - // res = pcre_get_substring((char *)arg, ov, MAX_SUBSTRINGS, - // args, &arg_substr); - // if (res < 0) { - // SCLogError(SC_ERR_PCRE_GET_SUBSTRING, "pcre_get_substring failed " - // "for arg 1"); - // goto error; - // } - // printf("%d-%s\n", args, arg_substr); - //} - cd->flags |= DETECT_CONTENT_FAST_PATTERN; return 0;