Commit 596bd150 authored by tzik's avatar tzik Committed by Commit Bot

Remove unused RefPtrValuePeeker code from RefPtr

Bug: 763844
Change-Id: Icfaf76fd6be189bc16b0d428e4ddcd5060e28139
Reviewed-on: https://chromium-review.googlesource.com/700056Reviewed-by: default avatarYuta Kitamura <yutak@chromium.org>
Commit-Queue: Taiju Tsuiki <tzik@chromium.org>
Cr-Commit-Position: refs/heads/master@{#506681}
parent 0a9dd6d4
......@@ -30,8 +30,6 @@
namespace WTF {
template <typename T>
class RefPtrValuePeeker;
template <typename T>
class RefPtr;
......@@ -73,9 +71,6 @@ class RefPtr {
ptr_ = nullptr;
return *this;
}
// This is required by HashMap<RefPtr>>.
template <typename U>
RefPtr& operator=(RefPtrValuePeeker<U>);
void swap(RefPtr&);
......@@ -89,14 +84,6 @@ class RefPtr {
scoped_refptr<T> ptr_;
};
template <typename T>
template <typename U>
inline RefPtr<T>& RefPtr<T>::operator=(RefPtrValuePeeker<U> optr) {
RefPtr ptr = static_cast<U*>(optr);
swap(ptr);
return *this;
}
template <class T>
inline void RefPtr<T>::swap(RefPtr& o) {
std::swap(ptr_, o.ptr_);
......@@ -168,7 +155,6 @@ class RefPtrValuePeeker {
public:
ALWAYS_INLINE RefPtrValuePeeker(T* p) : ptr_(p) {}
ALWAYS_INLINE RefPtrValuePeeker(std::nullptr_t) : ptr_(nullptr) {}
template <typename U>
RefPtrValuePeeker(const RefPtr<U>& p) : ptr_(p.get()) {}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment