Remove OneLineShaper::increment.

This private method is never used.

Change-Id: Ibd71b76d9d76698a8b8d19e5275959df2cf45e45
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/291320
Reviewed-by: Julia Lavrova <jlavrova@google.com>
Commit-Queue: Ben Wagner <bungeman@google.com>
This commit is contained in:
Ben Wagner 2020-05-21 10:38:01 -04:00 committed by Skia Commit-Bot
parent fa00ae42ce
commit c7e35b2bfc
2 changed files with 0 additions and 11 deletions

View File

@ -231,16 +231,6 @@ void OneLineShaper::finish(TextRange blockText, SkScalar height, SkScalar& advan
}
}
void OneLineShaper::increment(TextIndex& index) {
auto text = fCurrentRun->fMaster->text();
auto cluster = text.begin() + index;
if (cluster < text.end()) {
utf8_next(&cluster, text.end());
index = cluster - text.begin();
}
}
// Make it [left:right) regardless of a text direction
TextRange OneLineShaper::normalizeTextRange(GlyphRange glyphRange) {

View File

@ -96,7 +96,6 @@ private:
void addUnresolvedWithRun(GlyphRange glyphRange);
void sortOutGlyphs(std::function<void(GlyphRange)>&& sortOutUnresolvedBLock);
ClusterRange normalizeTextRange(GlyphRange glyphRange);
void increment(TextIndex& index);
void fillGaps(size_t);
ParagraphImpl* fParagraph;