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

@ -1512,7 +1512,6 @@ void Terminal::set_size(u16 columns, u16 rows)
if (buffer[i].length() != columns)
lines_to_reevaluate.enqueue(i);
}
size_t rows_inserted = 0;
while (!lines_to_reevaluate.is_empty()) {
auto index = lines_to_reevaluate.dequeue();
auto is_at_seam = index + 1 == buffer.size();
@ -1524,7 +1523,6 @@ void Terminal::set_size(u16 columns, u16 rows)
auto current_cursor = cursor_on_line(index);
// Split the line into two (or more)
++index;
++rows_inserted;
buffer.insert(index, make<Line>(0));
VERIFY(buffer[index].length() == 0);
line.rewrap(columns, &buffer[index], current_cursor, false);