From f7a40b200def4a5ffd63fca7c799dc5fedf63abb Mon Sep 17 00:00:00 2001 From: Justin Viiret Date: Thu, 3 Mar 2016 13:44:54 +1100 Subject: [PATCH] Rose: remove dead function roseHandleMatch --- src/rose/match.c | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/src/rose/match.c b/src/rose/match.c index f62a5824..57a1688c 100644 --- a/src/rose/match.c +++ b/src/rose/match.c @@ -222,29 +222,6 @@ event_enqueued: return HWLM_CONTINUE_MATCHING; } -/* handles the firing of external matches */ -static rose_inline -hwlmcb_rv_t roseHandleMatch(const struct RoseEngine *t, ReportID id, u64a end, - struct hs_scratch *scratch) { - struct RoseContext *tctxt = &scratch->tctxt; - - assert(!t->needsCatchup || end == tctxt->minMatchOffset); - DEBUG_PRINTF("firing callback id=%u, end=%llu\n", id, end); - updateLastMatchOffset(tctxt, end); - - int cb_rv = tctxt->cb(end, id, scratch); - if (cb_rv == MO_HALT_MATCHING) { - DEBUG_PRINTF("termination requested\n"); - return HWLM_TERMINATE_MATCHING; - } - - if (cb_rv == ROSE_CONTINUE_MATCHING_NO_EXHAUST) { - return HWLM_CONTINUE_MATCHING; - } - - return roseHaltIfExhausted(t, scratch); -} - int roseAnchoredCallback(u64a end, u32 id, void *ctx) { struct RoseContext *tctxt = ctx; struct hs_scratch *scratch = tctxtToScratch(tctxt);