diff options
author | Ben Wagner <bungeman@google.com> | 2018-07-12 13:30:47 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-07-12 20:59:20 +0000 |
commit | 9ec70c6bd3dfe6338fbbae9c0447a5cbae770a75 (patch) | |
tree | fe9dcd75fcc80ce6c3d52a6d18cf8639b8aed485 /include/core | |
parent | c434ade20eba4a62c450b7ce33a89966fac9df62 (diff) |
Remove SkSafeSetNull.
Update all users to sk_sp.
Change-Id: I6453b9456b9a8f9e2b756381797f1382ef9e6561
Reviewed-on: https://skia-review.googlesource.com/141052
Commit-Queue: Ben Wagner <bungeman@google.com>
Reviewed-by: Herb Derby <herb@google.com>
Diffstat (limited to 'include/core')
-rw-r--r-- | include/core/SkRefCnt.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/include/core/SkRefCnt.h b/include/core/SkRefCnt.h index d919c8114c..adebd9b8a6 100644 --- a/include/core/SkRefCnt.h +++ b/include/core/SkRefCnt.h @@ -199,13 +199,6 @@ template <typename T> static inline void SkSafeUnref(T* obj) { } } -template<typename T> static inline void SkSafeSetNull(T*& obj) { - if (obj) { - obj->unref(); - obj = nullptr; - } -} - /////////////////////////////////////////////////////////////////////////////// // This is a variant of SkRefCnt that's Not Virtual, so weighs 4 bytes instead of 8 or 16. |