1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 03:57:43 +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

@ -940,12 +940,10 @@ Vector<CodeComprehension::TokenInfo> CppComprehensionEngine::get_tokens_info(Str
auto const& document = *document_ptr;
Vector<CodeComprehension::TokenInfo> tokens_info;
size_t i = 0;
for (auto const& token : document.preprocessor().unprocessed_tokens()) {
tokens_info.append({ get_token_semantic_type(document, token),
token.start().line, token.start().column, token.end().line, token.end().column });
++i;
dbgln_if(CPP_LANGUAGE_SERVER_DEBUG, "{}: {}", token.text(), CodeComprehension::TokenInfo::type_to_string(tokens_info.last().type));
}
return tokens_info;