remove not use functions

This commit is contained in:
Roy Qu 2024-05-09 21:11:31 +08:00
parent cc359651ef
commit 1a59e3190b
2 changed files with 0 additions and 22 deletions

View File

@ -3237,27 +3237,6 @@ void QSynEdit::recalcCharExtent()
setLeftPos(currentLeftCol * mCharWidth); 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<S.length();i++) {
int CountOfAvgGlyphs = ceil(fontMetrics().horizontalAdvance(S[i])/(double)mCharWidth);
if (j+CountOfAvgGlyphs>=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() void QSynEdit::updateModifiedStatus()
{ {
bool oldModified = mModified; bool oldModified = mModified;

View File

@ -527,7 +527,6 @@ private:
void doUpdateVScrollbar(); void doUpdateVScrollbar();
void updateCaret(); void updateCaret();
void recalcCharExtent(); void recalcCharExtent();
QString expandAtWideGlyphs(const QString& S);
void updateModifiedStatus(); void updateModifiedStatus();
int reparseLines(int startLine, int endLine); int reparseLines(int startLine, int endLine);
//void reparseLine(int line); //void reparseLine(int line);