[lldb] Remove reset(nullptr_t) overload from SharingPtr

std::shared_ptr has no such method. This makes the two more similar.
This commit is contained in:
Pavel Labath 2020-02-06 10:06:09 -08:00
parent 5a8c0f552b
commit b8f4e0a823
2 changed files with 2 additions and 7 deletions

View File

@ -160,8 +160,8 @@ private:
void ResetHitCount() { m_hit_count = 0; }
void ResetHistoricValues() {
m_old_value_sp.reset(nullptr);
m_new_value_sp.reset(nullptr);
m_old_value_sp.reset();
m_new_value_sp.reset();
}
Target &m_target;

View File

@ -135,7 +135,6 @@ public:
void swap(SharingPtr &r);
void reset();
template <class Y> void reset(Y *p);
void reset(std::nullptr_t);
element_type *get() const { return ptr_; }
element_type &operator*() const { return *ptr_; }
@ -235,10 +234,6 @@ template <class T> inline void SharingPtr<T>::reset() {
SharingPtr().swap(*this);
}
template <class T> inline void SharingPtr<T>::reset(std::nullptr_t p) {
reset();
}
template <class T> template <class Y> inline void SharingPtr<T>::reset(Y *p) {
SharingPtr(p).swap(*this);
}