eod: retire getELiteralMatcher

This commit is contained in:
Justin Viiret 2016-06-14 13:39:41 +10:00 committed by Matthew Barr
parent 426bfc9cfb
commit 3e0232f0d6
2 changed files with 1 additions and 12 deletions

View File

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

View File

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