mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-11-16 17:31:51 +03:00
Remove RoseContext::userCtx
All Rose callbacks receive scratch as their context.
This commit is contained in:
committed by
Matthew Barr
parent
cca4116861
commit
70620327cc
@@ -424,8 +424,7 @@ void do_rebuild(const struct RoseEngine *t, const struct HWLM *ftable,
|
||||
}
|
||||
|
||||
void roseStreamExec(const struct RoseEngine *t, struct hs_scratch *scratch,
|
||||
RoseCallback callback, RoseCallbackSom som_callback,
|
||||
void *ctx) {
|
||||
RoseCallback callback, RoseCallbackSom som_callback) {
|
||||
DEBUG_PRINTF("OH HAI\n");
|
||||
assert(t);
|
||||
assert(scratch->core_info.hbuf);
|
||||
@@ -458,7 +457,6 @@ void roseStreamExec(const struct RoseEngine *t, struct hs_scratch *scratch,
|
||||
tctxt->filledDelayedSlots = 0;
|
||||
tctxt->cb = callback;
|
||||
tctxt->cb_som = som_callback;
|
||||
tctxt->userCtx = ctx;
|
||||
tctxt->lastMatchOffset = 0;
|
||||
tctxt->minMatchOffset = offset;
|
||||
tctxt->minNonMpvMatchOffset = offset;
|
||||
|
||||
Reference in New Issue
Block a user