From fc7fbd8997339324555d182c2033e8e4c723b5a0 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sat, 8 Oct 2016 17:30:25 -0400 Subject: [PATCH] Remove unnecessary owned::GetRawPointer(). --- zcpointer.h | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/zcpointer.h b/zcpointer.h index c4b8991..06ce70c 100644 --- a/zcpointer.h +++ b/zcpointer.h @@ -71,13 +71,6 @@ class owned : public std::unique_ptr> { return ref(*this); } - protected: - friend class ref; - - T* GetRawPointer() const { - return get(); - } - private: T* get() const { return this->std::unique_ptr::get(); @@ -112,7 +105,7 @@ class ref { T* operator->() const { CheckDeleted(); - return ptr_->GetRawPointer(); + return ptr_->operator->(); } protected: -- 2.43.5