mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-10-09 15:52:27 +03:00
NFA API: Remove unused scratch ptr from struct mq
This commit is contained in:
committed by
Matthew Barr
parent
58f9617f66
commit
c3860a9f29
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user