diff --git a/src/IntrusivePtr.h b/src/IntrusivePtr.h index 44652b7d09..3550b1fc46 100644 --- a/src/IntrusivePtr.h +++ b/src/IntrusivePtr.h @@ -103,21 +103,6 @@ public: return result; } - /** - * Convenience function for assigning a new raw pointer. Equivalent to calling - * @c operator= with an @c IntrusivePtr constructed from the arguments. - * @param new_value Pointer to the new shared object. - * @param add_ref Denotes whether the reference count of the new shared object - * shall be increased. - */ - void reset(pointer new_value = nullptr, bool add_ref = true) noexcept - { - auto old = ptr_; - setPtr(new_value, add_ref); - if ( old ) - Unref(old); - } - IntrusivePtr& operator=(IntrusivePtr other) noexcept { swap(other);