Skip to content

Commit

Permalink
Update to support only matched event
Browse files Browse the repository at this point in the history
Signed-off-by: Barry Xu <barry.xu@sony.com>
  • Loading branch information
Barry-Xu-2018 committed Mar 16, 2023
1 parent 3a48290 commit 4052b24
Show file tree
Hide file tree
Showing 3 changed files with 78 additions and 173 deletions.
2 changes: 0 additions & 2 deletions rcl/include/rcl/event.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ typedef enum rcl_publisher_event_type_e
RCL_PUBLISHER_OFFERED_INCOMPATIBLE_QOS,
RCL_PUBLISHER_INCOMPATIBLE_TYPE,
RCL_PUBLISHER_MATCHED,
RCL_PUBLISHER_UNMATCHED,
} rcl_publisher_event_type_t;

/// Enumeration of all of the subscription events that may fire.
Expand All @@ -52,7 +51,6 @@ typedef enum rcl_subscription_event_type_e
RCL_SUBSCRIPTION_MESSAGE_LOST,
RCL_SUBSCRIPTION_INCOMPATIBLE_TYPE,
RCL_SUBSCRIPTION_MATCHED,
RCL_SUBSCRIPTION_UNMATCHED,
} rcl_subscription_event_type_t;

/// Internal rcl implementation struct.
Expand Down
6 changes: 0 additions & 6 deletions rcl/src/rcl/event.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,6 @@ rcl_publisher_event_init(
case RCL_PUBLISHER_MATCHED:
rmw_event_type = RMW_EVENT_PUBLICATION_MATCHED;
break;
case RCL_PUBLISHER_UNMATCHED:
rmw_event_type = RMW_EVENT_PUBLICATION_UNMATCHED;
break;
default:
RCL_SET_ERROR_MSG("Event type for publisher not supported");
return RCL_RET_INVALID_ARGUMENT;
Expand Down Expand Up @@ -133,9 +130,6 @@ rcl_subscription_event_init(
case RCL_SUBSCRIPTION_MATCHED:
rmw_event_type = RMW_EVENT_SUBSCRIPTION_MATCHED;
break;
case RCL_SUBSCRIPTION_UNMATCHED:
rmw_event_type = RMW_EVENT_SUBSCRIPTION_UNMATCHED;
break;
default:
RCL_SET_ERROR_MSG("Event type for subscription not supported");
return RCL_RET_INVALID_ARGUMENT;
Expand Down
Loading

0 comments on commit 4052b24

Please sign in to comment.