Skip to content

Commit e187411

Browse files
Mauro Passerinowjwwood
authored andcommitted
Do not set gc listener callback
Signed-off-by: Mauro Passerino <[email protected]>
1 parent f125d57 commit e187411

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

rclcpp/src/rclcpp/subscription_intra_process_base.cpp

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,6 @@ SubscriptionIntraProcessBase::set_listener_callback(
4242
rmw_listener_callback_t callback,
4343
const void * user_data) const
4444
{
45-
rcl_ret_t ret = rcl_guard_condition_set_listener_callback(
46-
&gc_,
47-
callback,
48-
user_data);
49-
50-
if (RCL_RET_OK != ret) {
51-
throw std::runtime_error("Couldn't set guard condition listener callback");
52-
}
45+
(void)callback;
46+
(void)user_data;
5347
}

0 commit comments

Comments
 (0)