Remove stale signature benchmarking code (-L command-line option).

I don't think this is seeing much use or will ever see much use, and
unless compilers optimize it out, it's just wasting cycles.
This commit is contained in:
Jon Siwek 2015-04-06 15:46:08 -05:00
parent 56a7bf7936
commit 2aae90d4f2
4 changed files with 0 additions and 36 deletions

View file

@ -20,9 +20,6 @@ int case_insensitive = 0;
extern int RE_parse(void);
extern void RE_set_input(const char* str);
// If true, the set-wise matching always returns false - for benchmarking.
extern int rule_bench;
Specific_RE_Matcher::Specific_RE_Matcher(match_type arg_mt, int arg_multiline)
: equiv_class(NUM_SYM)
{
@ -279,9 +276,6 @@ inline void RE_Match_State::AddMatches(const AcceptingSet& as,
bool RE_Match_State::Match(const u_char* bv, int n,
bool bol, bool eol, bool clear)
{
if ( rule_bench > 0 )
return false;
if ( current_pos == -1 )
{
// First call to Match().