diff --git a/src/corelib/tools/qsharedpointer_impl.h b/src/corelib/tools/qsharedpointer_impl.h index 0db62d9ef4..0e69c18ca4 100644 --- a/src/corelib/tools/qsharedpointer_impl.h +++ b/src/corelib/tools/qsharedpointer_impl.h @@ -634,10 +634,6 @@ public: // std::weak_ptr compatibility: inline QSharedPointer lock() const { return toStrongRef(); } -#if defined(QWEAKPOINTER_ENABLE_ARROW) - inline T *operator->() const { return data(); } -#endif - template bool operator==(const QWeakPointer &o) const noexcept { return d == o.d && value == static_cast(o.value); }