From 5d19984dc74b0eb0f381218fe766830c448e5405 Mon Sep 17 00:00:00 2001 From: yuanyuyuan Date: Wed, 11 Dec 2024 00:48:05 +0800 Subject: [PATCH] chore: comment out the unused code --- rmw_zenoh_cpp/src/detail/rmw_publisher_data.cpp | 2 +- rmw_zenoh_cpp/src/detail/rmw_service_data.cpp | 2 +- rmw_zenoh_cpp/src/detail/rmw_subscription_data.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/rmw_zenoh_cpp/src/detail/rmw_publisher_data.cpp b/rmw_zenoh_cpp/src/detail/rmw_publisher_data.cpp index 19ac1f76..bb1cac66 100644 --- a/rmw_zenoh_cpp/src/detail/rmw_publisher_data.cpp +++ b/rmw_zenoh_cpp/src/detail/rmw_publisher_data.cpp @@ -58,7 +58,7 @@ std::shared_ptr PublisherData::make( return nullptr; } - rcutils_allocator_t * allocator = &node->context->options.allocator; + // rcutils_allocator_t * allocator = &node->context->options.allocator; // const rosidl_type_hash_t * type_hash = type_support->get_type_hash_func(type_support); auto callbacks = static_cast(type_support->data); diff --git a/rmw_zenoh_cpp/src/detail/rmw_service_data.cpp b/rmw_zenoh_cpp/src/detail/rmw_service_data.cpp index afac1366..8bb01f1a 100644 --- a/rmw_zenoh_cpp/src/detail/rmw_service_data.cpp +++ b/rmw_zenoh_cpp/src/detail/rmw_service_data.cpp @@ -83,7 +83,7 @@ std::shared_ptr ServiceData::make( return nullptr; } - rcutils_allocator_t * allocator = &node->context->options.allocator; + // rcutils_allocator_t * allocator = &node->context->options.allocator; // const rosidl_type_hash_t * type_hash = type_support->get_type_hash_func(type_support); auto service_members = static_cast(type_support->data); diff --git a/rmw_zenoh_cpp/src/detail/rmw_subscription_data.cpp b/rmw_zenoh_cpp/src/detail/rmw_subscription_data.cpp index 96cf674a..d30d3e43 100644 --- a/rmw_zenoh_cpp/src/detail/rmw_subscription_data.cpp +++ b/rmw_zenoh_cpp/src/detail/rmw_subscription_data.cpp @@ -111,7 +111,7 @@ std::shared_ptr SubscriptionData::make( return nullptr; } - rcutils_allocator_t * allocator = &node->context->options.allocator; + // rcutils_allocator_t * allocator = &node->context->options.allocator; // const rosidl_type_hash_t * type_hash = type_support->get_type_hash_func(type_support); auto callbacks = static_cast(type_support->data);