mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:37:35 +00:00
Everywhere: Remove a bunch of dead write-only variables
LLVM 15 now warns (and thus errors) about this, and there is really no point in keeping them.
This commit is contained in:
parent
643d2a683b
commit
8763dbcccc
8 changed files with 6 additions and 18 deletions
|
@ -415,7 +415,9 @@ template<class Parser>
|
|||
bool Matcher<Parser>::execute(MatchInput const& input, MatchState& state, size_t& operations) const
|
||||
{
|
||||
BumpAllocatedLinkedList<MatchState> states_to_try_next;
|
||||
#if REGEX_DEBUG
|
||||
size_t recursion_level = 0;
|
||||
#endif
|
||||
|
||||
auto& bytecode = m_pattern->parser_result.bytecode;
|
||||
|
||||
|
@ -483,7 +485,9 @@ bool Matcher<Parser>::execute(MatchInput const& input, MatchState& state, size_t
|
|||
states_to_try_next.last().initiating_fork = state.instruction_position - opcode.size();
|
||||
}
|
||||
state.instruction_position = state.fork_at_position;
|
||||
#if REGEX_DEBUG
|
||||
++recursion_level;
|
||||
#endif
|
||||
continue;
|
||||
}
|
||||
case ExecutionResult::Continue:
|
||||
|
@ -501,7 +505,9 @@ bool Matcher<Parser>::execute(MatchInput const& input, MatchState& state, size_t
|
|||
return false;
|
||||
}
|
||||
state = states_to_try_next.take_last();
|
||||
#if REGEX_DEBUG
|
||||
++recursion_level;
|
||||
#endif
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue