From 1a59e3190bd3b27e51e40d8c6d40255f3ff8d16d Mon Sep 17 00:00:00 2001 From: Roy Qu Date: Thu, 9 May 2024 21:11:31 +0800 Subject: [PATCH] remove not use functions --- libs/qsynedit/qsynedit/qsynedit.cpp | 21 --------------------- libs/qsynedit/qsynedit/qsynedit.h | 1 - 2 files changed, 22 deletions(-) diff --git a/libs/qsynedit/qsynedit/qsynedit.cpp b/libs/qsynedit/qsynedit/qsynedit.cpp index c1955219..ad1fcabc 100644 --- a/libs/qsynedit/qsynedit/qsynedit.cpp +++ b/libs/qsynedit/qsynedit/qsynedit.cpp @@ -3237,27 +3237,6 @@ void QSynEdit::recalcCharExtent() setLeftPos(currentLeftCol * mCharWidth); } -QString QSynEdit::expandAtWideGlyphs(const QString &S) -{ - QString Result(S.length()*2, QChar(0)); // speed improvement - int j = 0; - for (int i=0;i=Result.length()) - Result.resize(Result.length()+128); - // insert CountOfAvgGlyphs filling chars - while (CountOfAvgGlyphs>1) { - Result[j]=QChar(0xE000); - j++; - CountOfAvgGlyphs--; - } - Result[j]=S[i]; - j++; - } - Result.resize(j); - return Result; -} - void QSynEdit::updateModifiedStatus() { bool oldModified = mModified; diff --git a/libs/qsynedit/qsynedit/qsynedit.h b/libs/qsynedit/qsynedit/qsynedit.h index d27ecc44..6c385526 100644 --- a/libs/qsynedit/qsynedit/qsynedit.h +++ b/libs/qsynedit/qsynedit/qsynedit.h @@ -527,7 +527,6 @@ private: void doUpdateVScrollbar(); void updateCaret(); void recalcCharExtent(); - QString expandAtWideGlyphs(const QString& S); void updateModifiedStatus(); int reparseLines(int startLine, int endLine); //void reparseLine(int line);