diff --git a/unit/internal/lbr.cpp b/unit/internal/lbr.cpp index be53d9f3..bb180e5f 100644 --- a/unit/internal/lbr.cpp +++ b/unit/internal/lbr.cpp @@ -36,7 +36,6 @@ #include "nfa/nfa_internal.h" #include "nfa/nfa_api_util.h" #include "nfagraph/ng_lbr.h" -#include "scratch.h" #include "util/alloc.h" #include "util/compile_context.h" #include "grey.h" @@ -155,9 +154,6 @@ protected: // Space for stream state. aligned_unique_ptr stream_state; - // Space for NFAContext structure. - aligned_unique_ptr nfa_context; - // Queue structure. struct mq q; }; diff --git a/unit/internal/limex_nfa.cpp b/unit/internal/limex_nfa.cpp index 7c0b66e4..6d77fffe 100644 --- a/unit/internal/limex_nfa.cpp +++ b/unit/internal/limex_nfa.cpp @@ -39,7 +39,6 @@ #include "nfa/nfa_api.h" #include "nfa/nfa_api_util.h" #include "nfa/nfa_internal.h" -#include "scratch.h" #include "util/alloc.h" #include "util/target_info.h" @@ -86,11 +85,6 @@ protected: full_state = aligned_zmalloc_unique(nfa->scratchStateSize); stream_state = aligned_zmalloc_unique(nfa->streamStateSize); - nfa_context = aligned_zmalloc_unique(sizeof(NFAContext512)); - - // Mock up a scratch structure that contains the pieces that we need - // for NFA execution. - scratch = aligned_zmalloc_unique(sizeof(struct hs_scratch)); } virtual void initQueue() { @@ -125,12 +119,6 @@ protected: // Space for stream state. aligned_unique_ptr stream_state; - // Space for NFAContext structure. - aligned_unique_ptr nfa_context; - - // Mock scratch. - aligned_unique_ptr scratch; - // Queue structure. struct mq q; }; @@ -331,12 +319,6 @@ protected: nfa = constructReversedNFA(g_rev, type, cc); ASSERT_TRUE(nfa != nullptr); - - nfa_context = aligned_zmalloc_unique(sizeof(NFAContext512)); - - // Mock up a scratch structure that contains the pieces that we need - // for reverse NFA execution. - scratch = aligned_zmalloc_unique(sizeof(struct hs_scratch)); } // NFA type (enum NFAEngineType) @@ -347,12 +329,6 @@ protected: // Compiled NFA structure. aligned_unique_ptr nfa; - - // Space for NFAContext structure. - aligned_unique_ptr nfa_context; - - // Mock scratch. - aligned_unique_ptr scratch; }; INSTANTIATE_TEST_CASE_P(LimExReverse, LimExReverseTest, @@ -401,11 +377,6 @@ protected: full_state = aligned_zmalloc_unique(nfa->scratchStateSize); stream_state = aligned_zmalloc_unique(nfa->streamStateSize); - nfa_context = aligned_zmalloc_unique(sizeof(NFAContext512)); - - // Mock up a scratch structure that contains the pieces that we need - // for NFA execution. - scratch = aligned_zmalloc_unique(sizeof(struct hs_scratch)); } virtual void initQueue() { @@ -440,12 +411,6 @@ protected: // Space for stream state. aligned_unique_ptr stream_state; - // Space for NFAContext structure. - aligned_unique_ptr nfa_context; - - // Mock scratch. - aligned_unique_ptr scratch; - // Queue structure. struct mq q; };