diff --git a/pglab/codeeditor/CodeEditor.cpp b/pglab/codeeditor/CodeEditor.cpp index ac75455..ee591a8 100644 --- a/pglab/codeeditor/CodeEditor.cpp +++ b/pglab/codeeditor/CodeEditor.cpp @@ -120,14 +120,6 @@ void CodeEditor::updateExtraSelections() 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 { return errorLines.count(blockNumber) > 0; diff --git a/pglab/codeeditor/CodeEditor.h b/pglab/codeeditor/CodeEditor.h index 2f40d5f..aa6ab02 100644 --- a/pglab/codeeditor/CodeEditor.h +++ b/pglab/codeeditor/CodeEditor.h @@ -49,8 +49,6 @@ private: bool lineHasError(int blockNumber) const; void updateExtraSelections(); bool indentSelection(bool indent); - void drawGutterErrorMarker(QPainter &painter, int top); - void insertIndentation(QTextCursor &cursor); void removeIndentation(QTextCursor &cursor); void makeSelection(QTextCursor &cursor, int first_pos, int end_block); diff --git a/pglab/codeeditor/GutterPainter.h b/pglab/codeeditor/GutterPainter.h index 3594ea3..ebe37f8 100644 --- a/pglab/codeeditor/GutterPainter.h +++ b/pglab/codeeditor/GutterPainter.h @@ -18,7 +18,6 @@ private: QPaintEvent *event; QFontMetrics fontMetrics; - // Loop state struct LoopState { CodeEditor *editor; QTextBlock block;