Commit 2a2837a6 authored by Eike Ziller's avatar Eike Ziller

BaseTextEditor: Remove unused method and member

Change-Id: I9b9081df454aae35c42744f4bbd385e8bd6c50d2
Reviewed-by: default avatarEike Ziller <eike.ziller@digia.com>
parent 355f104d
......@@ -599,43 +599,6 @@ void BaseTextEditorWidgetPrivate::foldLicenseHeader()
}
}
const Utils::ChangeSet &BaseTextEditorWidget::changeSet() const
{
return d->m_changeSet;
}
void BaseTextEditorWidget::setChangeSet(const Utils::ChangeSet &changeSet)
{
d->m_changeSet = changeSet;
foreach (const ChangeSet::EditOp &op, changeSet.operationList()) {
// ### TODO: process the edit operation
switch (op.type) {
case ChangeSet::EditOp::Replace:
break;
case ChangeSet::EditOp::Move:
break;
case ChangeSet::EditOp::Insert:
break;
case ChangeSet::EditOp::Remove:
break;
case ChangeSet::EditOp::Flip:
break;
case ChangeSet::EditOp::Copy:
break;
default:
break;
} // switch
}
}
BaseTextDocument *BaseTextEditorWidget::baseTextDocument() const
{
return d->m_document.data();
......
......@@ -135,9 +135,6 @@ public:
BaseTextEditorWidget(BaseTextEditorWidget *other);
~BaseTextEditorWidget();
const Utils::ChangeSet &changeSet() const;
void setChangeSet(const Utils::ChangeSet &changeSet);
BaseTextDocument *baseTextDocument() const;
// IEditor
......@@ -145,7 +142,6 @@ public:
QByteArray saveState() const;
bool restoreState(const QByteArray &state);
void gotoLine(int line, int column = 0);
int position(ITextEditor::PositionOperation posOp = ITextEditor::Current,
int at = -1) const;
void convertPosition(int pos, int *line, int *column) const;
......
......@@ -125,8 +125,6 @@ public:
bool m_parenthesesMatchingEnabled;
QTimer *m_updateTimer;
Utils::ChangeSet m_changeSet;
// parentheses matcher
bool m_formatRange;
QTextCharFormat m_matchFormat;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment