Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(97)

Unified Diff: include/core/SkRefCnt.h

Issue 393953004: SkAutoRef seems lonely. Might as well delete it. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: simpler Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/gpu/GrTextStrike.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkRefCnt.h
diff --git a/include/core/SkRefCnt.h b/include/core/SkRefCnt.h
index 1724c77d8dc3b136d23915a886b820a3379f36d6..9e3a92eb9ac836af538eddcb8b02cc4fb4128a65 100644
--- a/include/core/SkRefCnt.h
+++ b/include/core/SkRefCnt.h
@@ -248,15 +248,6 @@ public:
};
#define SkAutoUnref(...) SK_REQUIRE_LOCAL_VAR(SkAutoUnref)
-class SkAutoRef : SkNoncopyable {
-public:
- SkAutoRef(SkRefCnt* obj) : fObj(obj) { SkSafeRef(obj); }
- ~SkAutoRef() { SkSafeUnref(fObj); }
-private:
- SkRefCnt* fObj;
-};
-#define SkAutoRef(...) SK_REQUIRE_LOCAL_VAR(SkAutoRef)
-
/** Wrapper class for SkRefCnt pointers. This manages ref/unref of a pointer to
a SkRefCnt (or subclass) object.
*/
« no previous file with comments | « no previous file | src/gpu/GrTextStrike.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698