Remove now unused needToClear

wilder
Thomas Surrel 4 years ago committed by Tomaz Canabrava
parent f2f7b92c77
commit 2f4b1b2d8b
  1. 1
      src/terminalDisplay/TerminalScrollBar.cpp
  2. 11
      src/terminalDisplay/extras/HighlightScrolledLines.cpp
  3. 9
      src/terminalDisplay/extras/HighlightScrolledLines.h

@ -80,7 +80,6 @@ void TerminalScrollBar::setHighlightScrolledLines(bool highlight)
{
_highlightScrolledLines.setEnabled(highlight);
_highlightScrolledLines.setTimer(this);
_highlightScrolledLines.setNeedToClear(true);
}
bool TerminalScrollBar::alternateScrolling() const

@ -18,7 +18,6 @@ HighlightScrolledLines::HighlightScrolledLines()
: _enabled(false)
, _previousScrollCount(0)
, _timer(nullptr)
, _needToClear(false)
{
}
@ -36,16 +35,6 @@ void HighlightScrolledLines::setEnabled(bool enable)
_enabled = enable;
}
bool HighlightScrolledLines::isNeedToClear()
{
return _needToClear;
}
void HighlightScrolledLines::setNeedToClear(bool isNeeded)
{
_needToClear = isNeeded;
}
int HighlightScrolledLines::getPreviousScrollCount()
{
return _previousScrollCount;

@ -43,14 +43,6 @@ public:
* Enable or disable the highlight lines
*/
void setEnabled(bool enable);
/**
* Return if the highlight line needs to clear
*/
bool isNeedToClear();
/**
* Set the highlight line needs to clear
*/
void setNeedToClear(bool isNeeded);
int getPreviousScrollCount();
void setPreviousScrollCount(int scrollCount);
/**
@ -76,7 +68,6 @@ private:
QRect _rect;
int _previousScrollCount;
std::unique_ptr<QTimer> _timer;
bool _needToClear;
};
} // namespace Konsole

Loading…
Cancel
Save