From 49a34bfa1fece361b037d2895123f078d9c63d40 Mon Sep 17 00:00:00 2001 From: "ChenYing Kuo (CY)" Date: Thu, 19 Dec 2024 22:30:33 +0800 Subject: [PATCH] Remove ZenohSession since it's not used now. (#348) Signed-off-by: ChenYing Kuo --- rmw_zenoh_cpp/src/detail/zenoh_utils.cpp | 14 -------------- rmw_zenoh_cpp/src/detail/zenoh_utils.hpp | 15 --------------- 2 files changed, 29 deletions(-) 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);