Skip to content

Commit

Permalink
Remove ZenohSession since it's not used now. (#348)
Browse files Browse the repository at this point in the history
Signed-off-by: ChenYing Kuo <[email protected]>
  • Loading branch information
evshary authored Dec 19, 2024
1 parent 68b4d9a commit 49a34bf
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 29 deletions.
14 changes: 0 additions & 14 deletions rmw_zenoh_cpp/src/detail/zenoh_utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<uint8_t, RMW_GID_STORAGE_SIZE> gid)
Expand Down
15 changes: 0 additions & 15 deletions rmw_zenoh_cpp/src/detail/zenoh_utils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<uint8_t, RMW_GID_STORAGE_SIZE> gid);
Expand Down

0 comments on commit 49a34bf

Please sign in to comment.