diff --git a/src/plugins/texteditor/basetexteditor.cpp b/src/plugins/texteditor/basetexteditor.cpp index 08d716f6266..faa53e44e38 100644 --- a/src/plugins/texteditor/basetexteditor.cpp +++ b/src/plugins/texteditor/basetexteditor.cpp @@ -890,15 +890,6 @@ int BaseTextEditorWidgetPrivate::visualIndent(const QTextBlock &block) const return 0; } -BaseTextEditor *BaseTextEditorWidget::editor() const -{ - if (!d->m_editor) { - QTC_CHECK("should not happen anymore" && false); - const_cast(this)->setupFallBackEditor(Id()); - } - return d->m_editor; -} - void BaseTextEditorWidget::selectEncoding() { BaseTextDocument *doc = d->m_document.data(); diff --git a/src/plugins/texteditor/basetexteditor.h b/src/plugins/texteditor/basetexteditor.h index b21e05b3fdd..8aecb95aff1 100644 --- a/src/plugins/texteditor/basetexteditor.h +++ b/src/plugins/texteditor/basetexteditor.h @@ -247,8 +247,6 @@ public: int at = -1) const; void convertPosition(int pos, int *line, int *column) const; - BaseTextEditor *editor() const; - void print(QPrinter *); void appendStandardContextMenuActions(QMenu *menu);