From 0d96a4bc71b827442fe99152fd3d7af296b8d818 Mon Sep 17 00:00:00 2001 From: Ben Wagner Date: Thu, 20 Sep 2018 12:29:08 -0400 Subject: [PATCH] Remove SkAutoTCallIProc. No longer used anywhere. Change-Id: I029d0caf1bb60ba3e77761648193c01d39c37183 Reviewed-on: https://skia-review.googlesource.com/155843 Commit-Queue: Hal Canary Auto-Submit: Ben Wagner Reviewed-by: Hal Canary --- include/private/SkTemplates.h | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/include/private/SkTemplates.h b/include/private/SkTemplates.h index 418502b2c1..567753a9ec 100644 --- a/include/private/SkTemplates.h +++ b/include/private/SkTemplates.h @@ -66,22 +66,6 @@ public: operator T*() const { return this->get(); } }; -/** \class SkAutoTCallIProc - -Call a function when this goes out of scope. The template uses two -parameters, the object, and a function that is to be called in the destructor. -If release() is called, the object reference is set to null. If the object -reference is null when the destructor is called, we do not call the -function. -*/ -template class SkAutoTCallIProc - : public std::unique_ptr> { -public: - SkAutoTCallIProc(T* obj): std::unique_ptr>(obj) {} - - operator T*() const { return this->get(); } -}; - /** Allocate an array of T elements, and free the array in the destructor */ template class SkAutoTArray {