diff --git a/src/detect-content.c b/src/detect-content.c index c9e0ede963..56ed6ec1bc 100644 --- a/src/detect-content.c +++ b/src/detect-content.c @@ -420,36 +420,6 @@ SigMatch *DetectContentGetLastPattern(SigMatch *sm) return sm; } -/** \brief get the last pattern sigmatch, content or uricontent - * - * \param s signature - * - * \retval sm sigmatch of either content or uricontent that is the last - * or NULL if none was found - */ -SigMatch *SigMatchGetLastPattern(Signature *s) { - SCEnter(); - - BUG_ON(s == NULL); - - SigMatch *co_sm = DetectContentGetLastPattern(s->sm_lists_tail[DETECT_SM_LIST_PMATCH]); - SigMatch *ur_sm = SigMatchGetLastSM(s->sm_lists_tail[DETECT_SM_LIST_UMATCH], DETECT_URICONTENT); - SigMatch *sm = NULL; - - if (co_sm != NULL && ur_sm != NULL) { - if (co_sm->idx > ur_sm->idx) - sm = co_sm; - else - sm = ur_sm; - } else if (co_sm != NULL) { - sm = co_sm; - } else if (ur_sm != NULL) { - sm = ur_sm; - } - - SCReturnPtr(sm, "SigMatch"); -} - /** * \brief Print list of DETECT_CONTENT SigMatch's allocated in a * SigMatch list, from the current sm to the end diff --git a/src/detect-content.h b/src/detect-content.h index cfeef4b308..e94a4c7e5d 100644 --- a/src/detect-content.h +++ b/src/detect-content.h @@ -117,8 +117,6 @@ SigMatch *DetectContentFindNextApplicableSM(SigMatch *); * a Pattern before the SigMatch passed as argument */ SigMatch *DetectContentHasPrevSMPattern(SigMatch *); -SigMatch *SigMatchGetLastPattern(Signature *s); - void DetectContentFree(void *); #endif /* __DETECT_CONTENT_H__ */