diff options
author | Cary Clark <caryclark@skia.org> | 2017-09-07 08:25:00 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-09-07 12:48:51 +0000 |
commit | 643627e2424e217bb0127f3985c7ad6b2d3940f7 (patch) | |
tree | 7e9ec18c875a9b7f9224e393e7971fa5640f785f /src/core/SkAutoPixmapStorage.h | |
parent | 76817e4a2289a4c306a2cc8d441695c4b0069318 (diff) |
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>
Diffstat (limited to 'src/core/SkAutoPixmapStorage.h')
-rw-r--r-- | src/core/SkAutoPixmapStorage.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/core/SkAutoPixmapStorage.h b/src/core/SkAutoPixmapStorage.h index 5473628135..7ee3a8a5c1 100644 --- a/src/core/SkAutoPixmapStorage.h +++ b/src/core/SkAutoPixmapStorage.h @@ -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); |