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:
parent
643d2a683b
commit
8763dbcccc
8 changed files with 6 additions and 18 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue