Skip to content

Commit f41762a

Browse files
johnstiles-googleSkia Commit-Bot
authored andcommitted
Remove accidentally repeated bit-index expression.
Also, remove unused #include of SkBitSet. Change-Id: Ib1b903f78e835a75c8ba88ac35bfa270df7bc0e3 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/322681 Commit-Queue: John Stiles <johnstiles@google.com> Commit-Queue: Brian Osman <brianosman@google.com> Reviewed-by: Brian Osman <brianosman@google.com> Auto-Submit: John Stiles <johnstiles@google.com>
1 parent 989f5bf commit f41762a

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/utils/SkBitSet.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ class SkBitSet {
132132
if (bitIndex >= fSize) {
133133
break;
134134
}
135-
return OptionalIndex(i * kChunkBits + SkCTZ(chunk));
135+
return OptionalIndex(bitIndex);
136136
}
137137
}
138138
return OptionalIndex();

tests/PDFGlyphsToUnicodeTest.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
#include "include/core/SkStream.h"
1414
#include "include/private/SkTo.h"
1515
#include "src/pdf/SkPDFMakeToUnicodeCmap.h"
16-
#include "src/utils/SkBitSet.h"
1716

1817
static constexpr SkGlyphID kMaximumGlyphIndex = UINT16_MAX;
1918

0 commit comments

Comments
 (0)