]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
code cleanup - remove DetectContentFindNextApplicableSM
authorAnoop Saldanha <poonaatsoc@gmail.com>
Sat, 18 Feb 2012 06:42:47 +0000 (12:12 +0530)
committerVictor Julien <victor@inliniac.net>
Sat, 18 Feb 2012 16:57:05 +0000 (17:57 +0100)
src/detect-content.c
src/detect-content.h

index 687879e543027a0931e1cd1cd32b38f28eed7bdd..1d4d64eeff57efe7e37d25d00bda9474d7f84bed 100644 (file)
@@ -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
index a6f7dd313a8f4e2a9d9a28ddfc45ca67b96eddf1..0ee8e0d2f17b43256df37541071b8816045d2c08 100644 (file)
@@ -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__ */