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 /include/core/SkPixmap.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 'include/core/SkPixmap.h')
-rw-r--r-- | include/core/SkPixmap.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/include/core/SkPixmap.h b/include/core/SkPixmap.h index 2f036e8e15..f36875e02f 100644 --- a/include/core/SkPixmap.h +++ b/include/core/SkPixmap.h @@ -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); |