forked from qt-creator/qt-creator
TextEditor: Remove now unneeded BaseTextEditorWidget::editor()
Change-Id: I5e481fd9c31733d033602d152ec42af6e5a09951 Reviewed-by: Christian Stenger <christian.stenger@digia.com>
This commit is contained in:
@@ -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<BaseTextEditorWidget *>(this)->setupFallBackEditor(Id());
|
||||
}
|
||||
return d->m_editor;
|
||||
}
|
||||
|
||||
void BaseTextEditorWidget::selectEncoding()
|
||||
{
|
||||
BaseTextDocument *doc = d->m_document.data();
|
||||
|
||||
Reference in New Issue
Block a user