Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove ZenohSession since it's not used now. #348

Merged
merged 1 commit into from
Dec 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading