mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-06-28 16:41:01 +03:00
NFA API: Remove unused scratch ptr from struct mq
This commit is contained in:
parent
58f9617f66
commit
c3860a9f29
@ -91,7 +91,6 @@ struct mq {
|
||||
* history buffer; (logically) immediately before the
|
||||
* main buffer */
|
||||
size_t hlength; /**< length of the history buffer */
|
||||
struct hs_scratch *scratch; /**< global scratch space */
|
||||
char report_current; /**<
|
||||
* report_current matches at starting offset through
|
||||
* callback. If true, the queue must be located at a
|
||||
|
@ -242,11 +242,6 @@ hs_error_t alloc_scratch(const hs_scratch_t *proto, hs_scratch_t **scratch) {
|
||||
// Don't get too big for your boots
|
||||
assert((size_t)(current - (char *)s) <= alloc_size);
|
||||
|
||||
// Init q->scratch ptr for every queue.
|
||||
for (struct mq *qi = s->queues; qi != s->queues + queueCount; ++qi) {
|
||||
qi->scratch = s;
|
||||
}
|
||||
|
||||
return HS_SUCCESS;
|
||||
}
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2015, Intel Corporation
|
||||
* Copyright (c) 2015-2016, Intel Corporation
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions are met:
|
||||
@ -120,7 +120,6 @@ protected:
|
||||
q.length = 0; // filled in by test
|
||||
q.history = nullptr;
|
||||
q.hlength = 0;
|
||||
q.scratch = nullptr; // not needed by LBR
|
||||
q.report_current = 0;
|
||||
q.cb = onMatch;
|
||||
q.som_cb = nullptr; // only used by Haig
|
||||
|
@ -104,7 +104,6 @@ protected:
|
||||
q.length = SCAN_DATA.size();
|
||||
q.history = nullptr;
|
||||
q.hlength = 0;
|
||||
q.scratch = scratch.get();
|
||||
q.report_current = 0;
|
||||
q.cb = onMatch;
|
||||
q.som_cb = nullptr; // only used by Haig
|
||||
@ -420,7 +419,6 @@ protected:
|
||||
q.length = ZOMBIE_SCAN_DATA.length();
|
||||
q.history = nullptr;
|
||||
q.hlength = 0;
|
||||
q.scratch = scratch.get();
|
||||
q.report_current = 0;
|
||||
q.cb = onMatch;
|
||||
q.som_cb = nullptr; // only used by Haig
|
||||
|
Loading…
x
Reference in New Issue
Block a user