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>
This commit is contained in:
parent
faba3715b8
commit
68057332d0
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user