remove useless reset

void reset(const SkImageInfo& info)
is not useful because it sets
rowBytes to zero while leaving
width alone.

This form of reset also doesn't
appear to have a caller.

TBR=reed@google.com
Bug: skia: 6898
Change-Id: I87019420ddc59107aefe0cac27a6b969976f1bf6
Reviewed-on: https://skia-review.googlesource.com/43480
Reviewed-by: Cary Clark <caryclark@skia.org>
Commit-Queue: Cary Clark <caryclark@skia.org>
This commit is contained in:
Cary Clark 2017-09-07 08:25:00 -04:00 committed by Skia Commit-Bot
parent 76817e4a22
commit 643627e242
2 changed files with 1 additions and 7 deletions

View File

@ -31,9 +31,6 @@ public:
void reset();
void reset(const SkImageInfo& info, const void* addr, size_t rowBytes);
void reset(const SkImageInfo& info) {
this->reset(info, nullptr, 0);
}
// overrides the colorspace in the SkImageInfo of the pixmap
void setColorSpace(sk_sp<SkColorSpace> colorSpace);

View File

@ -61,10 +61,7 @@ public:
this->freeStorage();
this->INHERITED::reset(info, addr, rb);
}
void reset(const SkImageInfo& info) {
this->freeStorage();
this->INHERITED::reset(info);
}
bool SK_WARN_UNUSED_RESULT reset(const SkMask& mask) {
this->freeStorage();
return this->INHERITED::reset(mask);