1
Fork 0
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:
Tim Schumacher 2022-09-13 23:44:19 +02:00 committed by Brian Gianforcaro
parent 643d2a683b
commit 8763dbcccc
8 changed files with 6 additions and 18 deletions

View file

@ -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;
}
}