diff --git a/include/seastar/core/shared_ptr.hh b/include/seastar/core/shared_ptr.hh index 83189f10eb..7b38b58df1 100644 --- a/include/seastar/core/shared_ptr.hh +++ b/include/seastar/core/shared_ptr.hh @@ -342,12 +342,6 @@ public: lw_shared_ptr& operator=(std::nullptr_t) noexcept { return *this = lw_shared_ptr(); } - [[deprecated("call make_lw_shared<> and assign the result instead")]] - lw_shared_ptr& operator=(T&& x) noexcept { - this->~lw_shared_ptr(); - new (this) lw_shared_ptr(make_lw_shared(std::move(x))); - return *this; - } T& operator*() const noexcept { return *accessors::to_value(_p); } T* operator->() const noexcept { return accessors::to_value(_p); }