diff --git a/src/include/libpmemobj++/persistent_ptr.hpp b/src/include/libpmemobj++/persistent_ptr.hpp index 5bc3a8e78fb..749a15d7887 100644 --- a/src/include/libpmemobj++/persistent_ptr.hpp +++ b/src/include/libpmemobj++/persistent_ptr.hpp @@ -303,15 +303,6 @@ class persistent_ptr : public detail::persistent_ptr_base { static persistent_ptr pointer_to(T &ref) { - /* - * XXX do we really want this to happen automatically for the - * whole object?? - * auto oid = pmemobj_oid_from_ptr(&ref); - * if (!OID_IS_NULL(oid) && - * (pmemobj_tx_stage() == TX_STAGE_WORK)) { - * pmemobj_tx_add_range(oid, sizeof(T)); - * } - */ return persistent_ptr(std::addressof(ref), 0); }