diff options
author | zhanyong.wan <zhanyong.wan@861a406c-534a-0410-8894-cb66d6ee9925> | 2010-10-11 06:28:54 (GMT) |
---|---|---|
committer | zhanyong.wan <zhanyong.wan@861a406c-534a-0410-8894-cb66d6ee9925> | 2010-10-11 06:28:54 (GMT) |
commit | c18438ca2983d4f334cfdbd4453e15c41111fa17 (patch) | |
tree | 48229c9462cd437cd81d16d93ac8d9714cc292a9 /include/gtest | |
parent | 9c482422587e01545f9da375bf585e4251816afc (diff) | |
download | googletest-c18438ca2983d4f334cfdbd4453e15c41111fa17.zip googletest-c18438ca2983d4f334cfdbd4453e15c41111fa17.tar.gz googletest-c18438ca2983d4f334cfdbd4453e15c41111fa17.tar.bz2 |
Makes gtest wokr on MinGW (by Vlad Losev); removes unused linked_ptr::release() method (by Zhanyong Wan).
Diffstat (limited to 'include/gtest')
-rw-r--r-- | include/gtest/internal/gtest-linked_ptr.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/include/gtest/internal/gtest-linked_ptr.h b/include/gtest/internal/gtest-linked_ptr.h index 78750b1..57147b4 100644 --- a/include/gtest/internal/gtest-linked_ptr.h +++ b/include/gtest/internal/gtest-linked_ptr.h @@ -172,15 +172,6 @@ class linked_ptr { T* get() const { return value_; } T* operator->() const { return value_; } T& operator*() const { return *value_; } - // Release ownership of the pointed object and returns it. - // Sole ownership by this linked_ptr object is required. - T* release() { - bool last = link_.depart(); - assert(last); - T* v = value_; - value_ = NULL; - return v; - } bool operator==(T* p) const { return value_ == p; } bool operator!=(T* p) const { return value_ != p; } |