From 97f5420a2734ea5e1eb6825ade42642774d2aa09 Mon Sep 17 00:00:00 2001 From: Roy Qu Date: Sun, 7 Apr 2024 21:40:54 +0800 Subject: [PATCH] code clean up --- libs/qsynedit/qsynedit/document.cpp | 8 -------- libs/qsynedit/qsynedit/document.h | 2 -- 2 files changed, 10 deletions(-) diff --git a/libs/qsynedit/qsynedit/document.cpp b/libs/qsynedit/qsynedit/document.cpp index 7fc59c34..ef08e905 100644 --- a/libs/qsynedit/qsynedit/document.cpp +++ b/libs/qsynedit/qsynedit/document.cpp @@ -1580,11 +1580,6 @@ size_t UndoItem::changeNumber() const return mChangeNumber; } -unsigned int UndoItem::memoryUsage() const -{ - return mMemoryUsage; -} - UndoItem::UndoItem(ChangeReason reason, SelectionMode selMode, BufferCoord startPos, BufferCoord endPos, const QStringList& text, int number) @@ -1599,9 +1594,6 @@ UndoItem::UndoItem(ChangeReason reason, SelectionMode selMode, foreach (const QString& s, text) { length+=s.length(); } - mMemoryUsage = length * sizeof(QChar) + text.length() * sizeof(QString) - + sizeof(UndoItem); -// qDebug()<;