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:
parent
fa00ae42ce
commit
c7e35b2bfc
@ -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) {
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user