Remove unused function

This commit is contained in:
eelke 2022-04-10 10:37:56 +02:00
parent a5563949e5
commit d0439c2d70
3 changed files with 0 additions and 11 deletions

View file

@ -120,14 +120,6 @@ void CodeEditor::updateExtraSelections()
setExtraSelections(extraSelections); setExtraSelections(extraSelections);
} }
void CodeEditor::drawGutterErrorMarker(QPainter &painter, int top)
{
int s = fontMetrics().height() - 8;
painter.setBrush(QBrush(Qt::red));
painter.drawEllipse(4, top + 4, s, s);
}
bool CodeEditor::lineHasError(int blockNumber) const bool CodeEditor::lineHasError(int blockNumber) const
{ {
return errorLines.count(blockNumber) > 0; return errorLines.count(blockNumber) > 0;

View file

@ -49,8 +49,6 @@ private:
bool lineHasError(int blockNumber) const; bool lineHasError(int blockNumber) const;
void updateExtraSelections(); void updateExtraSelections();
bool indentSelection(bool indent); bool indentSelection(bool indent);
void drawGutterErrorMarker(QPainter &painter, int top);
void insertIndentation(QTextCursor &cursor); void insertIndentation(QTextCursor &cursor);
void removeIndentation(QTextCursor &cursor); void removeIndentation(QTextCursor &cursor);
void makeSelection(QTextCursor &cursor, int first_pos, int end_block); void makeSelection(QTextCursor &cursor, int first_pos, int end_block);

View file

@ -18,7 +18,6 @@ private:
QPaintEvent *event; QPaintEvent *event;
QFontMetrics fontMetrics; QFontMetrics fontMetrics;
// Loop state
struct LoopState { struct LoopState {
CodeEditor *editor; CodeEditor *editor;
QTextBlock block; QTextBlock block;