code cleanup - remove DetectContentFindNextApplicableSM

remotes/origin/HEAD
Anoop Saldanha 14 years ago committed by Victor Julien
parent 802350f65a
commit d85ab5ab1f

@ -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

@ -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__ */

Loading…
Cancel
Save