diff --git a/rmw_zenoh_cpp/src/detail/zenoh_utils.cpp b/rmw_zenoh_cpp/src/detail/zenoh_utils.cpp index 35173656..3e6f8ef9 100644 --- a/rmw_zenoh_cpp/src/detail/zenoh_utils.cpp +++ b/rmw_zenoh_cpp/src/detail/zenoh_utils.cpp @@ -26,20 +26,6 @@ namespace rmw_zenoh_cpp { -/// Loan the zenoh session. -///============================================================================= -const z_loaned_session_t * ZenohSession::loan() -{ - return z_loan(inner_); -} - -/// Close the zenoh session if destructed. -///============================================================================= -ZenohSession::~ZenohSession() -{ - z_close(z_loan_mut(inner_), NULL); -} - ///============================================================================= zenoh::Bytes create_map_and_set_sequence_num( int64_t sequence_number, std::array gid) diff --git a/rmw_zenoh_cpp/src/detail/zenoh_utils.hpp b/rmw_zenoh_cpp/src/detail/zenoh_utils.hpp index 1b1efc87..8da7aae4 100644 --- a/rmw_zenoh_cpp/src/detail/zenoh_utils.hpp +++ b/rmw_zenoh_cpp/src/detail/zenoh_utils.hpp @@ -26,21 +26,6 @@ namespace rmw_zenoh_cpp { - -/// A wrapped zenoh session with customized destruction. -///============================================================================= -class ZenohSession final -{ -public: - ZenohSession(z_owned_session_t sess) - : inner_(sess) {} - const z_loaned_session_t * loan(); - ~ZenohSession(); - -private: - z_owned_session_t inner_; -}; - ///============================================================================= zenoh::Bytes create_map_and_set_sequence_num( int64_t sequence_number, std::array gid);