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;
|
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()
|
void BaseTextEditorWidget::selectEncoding()
|
||||||
{
|
{
|
||||||
BaseTextDocument *doc = d->m_document.data();
|
BaseTextDocument *doc = d->m_document.data();
|
||||||
|
|||||||
@@ -247,8 +247,6 @@ public:
|
|||||||
int at = -1) const;
|
int at = -1) const;
|
||||||
void convertPosition(int pos, int *line, int *column) const;
|
void convertPosition(int pos, int *line, int *column) const;
|
||||||
|
|
||||||
BaseTextEditor *editor() const;
|
|
||||||
|
|
||||||
void print(QPrinter *);
|
void print(QPrinter *);
|
||||||
|
|
||||||
void appendStandardContextMenuActions(QMenu *menu);
|
void appendStandardContextMenuActions(QMenu *menu);
|
||||||
|
|||||||
Reference in New Issue
Block a user