remove no use fields

This commit is contained in:
Roy Qu 2022-04-25 00:10:01 +08:00
parent d9259fb9e4
commit e7db1a3a6f
2 changed files with 0 additions and 10 deletions

View File

@ -56,7 +56,6 @@ SynEdit::SynEdit(QWidget *parent) : QAbstractScrollArea(parent),
#error "Not supported!"
#endif
mDocument = std::make_shared<SynDocument>(mFontDummy, this);
mOrigLines = mDocument;
//fPlugins := TList.Create;
mMouseMoved = false;
mUndoing = false;
@ -74,10 +73,8 @@ SynEdit::SynEdit(QWidget *parent) : QAbstractScrollArea(parent),
mUndoList = std::make_shared<SynEditUndoList>();
mUndoList->connect(mUndoList.get(), &SynEditUndoList::addedUndo, this, &SynEdit::onUndoAdded);
mOrigUndoList = mUndoList;
mRedoList = std::make_shared<SynEditUndoList>();
mRedoList->connect(mRedoList.get(), &SynEditUndoList::addedUndo, this, &SynEdit::onRedoAdded);
mOrigRedoList = mRedoList;
mForegroundColor=palette().color(QPalette::Text);
mBackgroundColor=palette().color(QPalette::Base);
@ -6590,10 +6587,6 @@ void SynEdit::onLinesPutted(int index, int count)
int vEndLine = index + 1;
if (mHighlighter) {
vEndLine = std::max(vEndLine, scanFrom(index, index+count) + 1);
// If this editor is chained then the real owner of text buffer will probably
// have already parsed the changes, so ScanFrom will return immediately.
if (mDocument != mOrigLines)
vEndLine = INT_MAX;
}
invalidateLines(index + 1, vEndLine);
}

View File

@ -644,9 +644,6 @@ private:
bool mInserting;
bool mPainting;
PSynDocument mDocument;
PSynDocument mOrigLines;
PSynEditUndoList mOrigUndoList;
PSynEditUndoList mOrigRedoList;
int mLinesInWindow;
int mLeftChar;
int mPaintLock; // lock counter for internal calculations