diff --git a/src/detect-content.c b/src/detect-content.c index 687879e543..1d4d64eeff 100644 --- a/src/detect-content.c +++ b/src/detect-content.c @@ -351,25 +351,6 @@ void DetectContentPrint(DetectContentData *cd) SCLogDebug("-----------"); } -/** - * \brief Search the next applicable DETECT_CONTENT SigMatch - (includes the current sm) - * - * \param sm pointer to the current SigMatch of a parsing process - * - * \retval null if no applicable DetectContent was found - * \retval pointer to the SigMatch next DETECT_CONTENT SigMatch - */ -SigMatch *DetectContentFindNextApplicableSM(SigMatch *sm) -{ - if (sm == NULL) - return NULL; - while ( sm != NULL && sm->type != DETECT_CONTENT) - sm = sm->next; - - return sm; -} - /** * \brief Search the first DETECT_CONTENT * \retval pointer to the SigMatch holding the DetectContent diff --git a/src/detect-content.h b/src/detect-content.h index a6f7dd313a..0ee8e0d2f1 100644 --- a/src/detect-content.h +++ b/src/detect-content.h @@ -109,10 +109,6 @@ void DetectContentPrint(DetectContentData *); * of the group will be returned). Modifiers must call this */ SigMatch *DetectContentGetLastPattern(SigMatch *); -/** This function search forwards the first applicable SigMatch holding - * a DETECT_CONTENT context. The Match process call this */ -SigMatch *DetectContentFindNextApplicableSM(SigMatch *); - void DetectContentFree(void *); #endif /* __DETECT_CONTENT_H__ */