Remove unused function
This commit is contained in:
parent
a5563949e5
commit
d0439c2d70
3 changed files with 0 additions and 11 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
|
|
@ -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);
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue