diff options
author | 2016-11-03 15:23:54 -0400 | |
---|---|---|
committer | 2016-11-03 19:58:05 +0000 | |
commit | 68057332d03017de933d9784213d8ece4adfb679 (patch) | |
tree | 8131637d6f648a3c3dc4455c34ae801b1c68fb56 /include/core/SkRefCnt.h | |
parent | faba3715b8ddfaa0ce4df79bc8006e9bc7694e5b (diff) |
Remove SkAutoUnref.
It is no longer used.
Change-Id: Ie2f9a39a4295005cb39bdf2f8fc15542ee75d207
Reviewed-on: https://skia-review.googlesource.com/4386
Commit-Queue: Ben Wagner <bungeman@google.com>
Commit-Queue: Mike Klein <mtklein@chromium.org>
Reviewed-by: Mike Klein <mtklein@chromium.org>
Diffstat (limited to 'include/core/SkRefCnt.h')
-rw-r--r-- | include/core/SkRefCnt.h | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/include/core/SkRefCnt.h b/include/core/SkRefCnt.h index a502d4ef17..9436b52269 100644 --- a/include/core/SkRefCnt.h +++ b/include/core/SkRefCnt.h @@ -199,13 +199,7 @@ public: T* detach() { return this->release(); } #endif }; -// Can't use the #define trick below to guard a bare SkAutoTUnref(...) because it's templated. :( - -class SkAutoUnref : public SkAutoTUnref<SkRefCnt> { -public: - SkAutoUnref(SkRefCnt* obj) : SkAutoTUnref<SkRefCnt>(obj) {} -}; -#define SkAutoUnref(...) SK_REQUIRE_LOCAL_VAR(SkAutoUnref) +// Can't use the #define trick to guard a bare SkAutoTUnref(...) because it's templated. :( // This is a variant of SkRefCnt that's Not Virtual, so weighs 4 bytes instead of 8 or 16. // There's only benefit to using this if the deriving class does not otherwise need a vtable. |