From b854aa1d20e92de390e6314a597b021b23b96cd0 Mon Sep 17 00:00:00 2001 From: Zufu Liu Date: Thu, 25 Apr 2019 10:53:03 +1000 Subject: Bug [#1238]. Removed redundant loop. --- src/EditView.cxx | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src') diff --git a/src/EditView.cxx b/src/EditView.cxx index a26412954..ffeb20648 100644 --- a/src/EditView.cxx +++ b/src/EditView.cxx @@ -425,10 +425,6 @@ void EditView::LayoutLine(const EditModel &model, Sci::Line line, Surface *surfa model.pdoc->GetStyleRange(ll->styles.get(), posLineStart, lineLength); const int numCharsBeforeEOL = static_cast(model.pdoc->LineEnd(line) - posLineStart); const int numCharsInLine = (vstyle.viewEOL) ? lineLength : numCharsBeforeEOL; - for (Sci::Position styleInLine = 0; styleInLine < numCharsInLine; styleInLine++) { - const unsigned char styleByte = ll->styles[styleInLine]; - ll->styles[styleInLine] = styleByte; - } const unsigned char styleByteLast = (lineLength > 0) ? ll->styles[lineLength - 1] : 0; if (vstyle.someStylesForceCase) { for (int charInLine = 0; charInLine