Skip to content

Commit

Permalink
Removes unused debug code
Browse files Browse the repository at this point in the history
It's not used for a long long time.
  • Loading branch information
luis-pereira committed Oct 19, 2023
1 parent c87f1e7 commit 9ca4a57
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions lib/TerminalDisplay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1122,11 +1122,6 @@ void TerminalDisplay::updateImage()
char *dirtyMask = new char[columnsToUpdate+2];
QRegion dirtyRegion;

// debugging variable, this records the number of lines that are found to
// be 'dirty' ( ie. have changed from the old _image to the new _image ) and
// which therefore need to be repainted
int dirtyLineCount = 0;

for (y = 0; y < linesToUpdate; ++y)
{
const Character* currentLine = &_image[y*this->_columns];
Expand Down Expand Up @@ -1220,8 +1215,6 @@ void TerminalDisplay::updateImage()
// then this line must be repainted.
if (updateLine)
{
dirtyLineCount++;

// add the area occupied by this line to the region which needs to be
// repainted
QRect dirtyRect = QRect( _leftMargin+tLx ,
Expand Down

0 comments on commit 9ca4a57

Please sign in to comment.