Skip to content

Commit

Permalink
Cleaner builds (#519)
Browse files Browse the repository at this point in the history
* Makes some color scheme debug code run

It's useful and has a negligible cost.

* Removes unused debug code

It's not used for a long long time.
  • Loading branch information
luis-pereira authored Oct 22, 2023
1 parent 87d7955 commit 52f7fe8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
4 changes: 2 additions & 2 deletions lib/ColorScheme.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -514,8 +514,8 @@ void ColorSchemeManager::loadAllColorSchemes()
failed++;
}

/*if ( failed > 0 )
qDebug() << "failed to load " << failed << " color schemes.";*/
if ( failed > 0 )
qDebug() << "failed to load " << failed << " color schemes.";

_haveLoadedAll = true;
}
Expand Down
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 52f7fe8

Please sign in to comment.