ros2 / rmw_fastrtps

Implementation of the ROS Middleware (rmw) Interface using eProsima's Fast RTPS.
Apache License 2.0
157 stars 117 forks source link

Remove duplicated code #637

Closed Barry-Xu-2018 closed 2 years ago

Barry-Xu-2018 commented 2 years ago

Find duplicated code and remove it.

fastdds_wait_set->detach_condition(custom_event_info->get_listener()->get_statuscondition());

is the same as the following code

eprosima::fastdds::dds::StatusCondition & status_condition =
    custom_event_info->get_listener()->get_statuscondition();
fastdds_wait_set->detach_condition(status_condition);
iuhilnehc-ynos commented 2 years ago