diff --git a/src/rose/program_runtime.h b/src/rose/program_runtime.h index e23a395c..30ecb4f7 100644 --- a/src/rose/program_runtime.h +++ b/src/rose/program_runtime.h @@ -935,7 +935,7 @@ hwlmcb_rv_t roseMatcherEod(const struct RoseEngine *rose, // the eod-anchored matcher region. size_t adj = eod_len - MIN(eod_len, rose->ematcherRegionSize); - const struct HWLM *etable = getELiteralMatcher(rose); + const struct HWLM *etable = getByOffset(rose, rose->ematcherOffset); hwlmExec(etable, eod_data, eod_len, adj, roseCallback, scratch, scratch->tctxt.groups); diff --git a/src/rose/rose_internal.h b/src/rose/rose_internal.h index 366636b6..af5b2a95 100644 --- a/src/rose/rose_internal.h +++ b/src/rose/rose_internal.h @@ -463,17 +463,6 @@ const struct HWLM *getFLiteralMatcher(const struct RoseEngine *t) { return (const struct HWLM *)lt; } -static really_inline -const void *getELiteralMatcher(const struct RoseEngine *t) { - if (!t->ematcherOffset) { - return NULL; - } - - const char *et = (const char *)t + t->ematcherOffset; - assert(ISALIGNED_N(et, 8)); - return et; -} - static really_inline const void *getSBLiteralMatcher(const struct RoseEngine *t) { if (!t->sbmatcherOffset) {