Remove unused dtor from GrTextStrike

Change-Id: I65c95acba080cd4465f3343ab57beb19fcbb75f2
Reviewed-on: https://skia-review.googlesource.com/c/179381
Auto-Submit: Herb Derby <herb@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
This commit is contained in:
Herb Derby 2018-12-19 19:43:08 -05:00 committed by Skia Commit-Bot
parent 428ec1e55c
commit 44539be30e
3 changed files with 0 additions and 11 deletions

View File

@ -44,8 +44,6 @@ struct GrGlyph {
fAtlasLocation.set(0, 0);
}
void reset() { }
int width() const { return fBounds.width(); }
int height() const { return fBounds.height(); }
bool isEmpty() const { return fBounds.isEmpty(); }

View File

@ -192,14 +192,6 @@ static bool get_packed_glyph_image(SkGlyphCache* cache, const SkGlyph& glyph, in
GrTextStrike::GrTextStrike(const SkDescriptor& key)
: fFontScalerKey(key) {}
GrTextStrike::~GrTextStrike() {
SkTDynamicHash<GrGlyph, GrGlyph::PackedID>::Iter iter(&fCache);
while (!iter.done()) {
(*iter).reset();
++iter;
}
}
GrGlyph* GrTextStrike::generateGlyph(const SkGlyph& skGlyph, GrGlyph::PackedID packed) {
SkIRect bounds;

View File

@ -29,7 +29,6 @@ class GrGpu;
class GrTextStrike : public SkNVRefCnt<GrTextStrike> {
public:
GrTextStrike(const SkDescriptor& fontScalerKey);
~GrTextStrike();
GrGlyph* getGlyph(const SkGlyph& skGlyph, GrGlyph::PackedID packed) {
GrGlyph* glyph = fCache.find(packed);