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);