Unused/obsolete code in XtermEngine #17280
Labels
Issue-Feature
Complex enough to require an in depth planning process and actual budgeted, scheduled work.
Needs-Tag-Fix
Doesn't match tag requirements
Needs-Triage
It's a new issue that the core contributor team needs to triage at the next triage meeting
In the
XtermEngine::StartPaint
method, there's some code that calculates the dirty area here:terminal/src/renderer/vt/XtermEngine.cpp
Lines 85 to 97 in 183a895
However, the result of that calculation is not actually used. There was a time when there was more code in that branch that compared the dirty area against the last viewport, but that was removed in PR #4741.
And in the
XtermEngine::_MoveCursor
method there's a local variableperformedSoftWrap
which is initially set to false at the start of the method here:terminal/src/renderer/vt/XtermEngine.cpp
Line 249 in 183a895
And it's potentially changed to true later in the code:
terminal/src/renderer/vt/XtermEngine.cpp
Lines 273 to 278 in 183a895
However, the variable is otherwise never read. It looks like it was added as part of PR #5181, but even then it doesn't appear to have been used.
Unless there is something I'm missing, I'd suggest we should remove the unused code.
The text was updated successfully, but these errors were encountered: