From e7db1a3a6f14d7664402f5e6c512357d589d041f Mon Sep 17 00:00:00 2001 From: Roy Qu Date: Mon, 25 Apr 2022 00:10:01 +0800 Subject: [PATCH] remove no use fields --- RedPandaIDE/qsynedit/SynEdit.cpp | 7 ------- RedPandaIDE/qsynedit/SynEdit.h | 3 --- 2 files changed, 10 deletions(-) diff --git a/RedPandaIDE/qsynedit/SynEdit.cpp b/RedPandaIDE/qsynedit/SynEdit.cpp index c42d395e..b31aae1a 100644 --- a/RedPandaIDE/qsynedit/SynEdit.cpp +++ b/RedPandaIDE/qsynedit/SynEdit.cpp @@ -56,7 +56,6 @@ SynEdit::SynEdit(QWidget *parent) : QAbstractScrollArea(parent), #error "Not supported!" #endif mDocument = std::make_shared(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(); mUndoList->connect(mUndoList.get(), &SynEditUndoList::addedUndo, this, &SynEdit::onUndoAdded); - mOrigUndoList = mUndoList; mRedoList = std::make_shared(); 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); } diff --git a/RedPandaIDE/qsynedit/SynEdit.h b/RedPandaIDE/qsynedit/SynEdit.h index 135e437d..31d9967c 100644 --- a/RedPandaIDE/qsynedit/SynEdit.h +++ b/RedPandaIDE/qsynedit/SynEdit.h @@ -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