Skip to content

Commit cfddb7c

Browse files
mjcarrollwjwwood
authored andcommitted
Remove dummy sentinel
Signed-off-by: Michael Carroll <[email protected]>
1 parent b8fdafc commit cfddb7c

13 files changed

+0
-72
lines changed

rclcpp/include/rclcpp/event_handler.hpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -106,12 +106,6 @@ class EventHandlerBase : public Waitable
106106
Event,
107107
};
108108

109-
// TODO(wjwwood): is this ok? do events continue to stay ready until they are
110-
// taken/checked?
111-
RCLCPP_PUBLIC
112-
void
113-
dummy() override {};
114-
115109
RCLCPP_PUBLIC
116110
virtual ~EventHandlerBase();
117111

rclcpp/include/rclcpp/executors/executor_notify_waitable.hpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,6 @@ class ExecutorNotifyWaitable : public rclcpp::Waitable
5353
RCLCPP_PUBLIC
5454
ExecutorNotifyWaitable & operator=(ExecutorNotifyWaitable & other);
5555

56-
RCLCPP_PUBLIC
57-
void
58-
dummy() override {};
59-
6056
/// Add conditions to the wait set
6157
/**
6258
* \param[inout] wait_set structure that conditions will be added to

rclcpp/include/rclcpp/experimental/subscription_intra_process.hpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,6 @@ class SubscriptionIntraProcess
101101

102102
virtual ~SubscriptionIntraProcess() = default;
103103

104-
RCLCPP_PUBLIC
105-
void
106-
dummy() override {};
107-
108104
RCLCPP_PUBLIC
109105
void
110106
add_to_wait_set(rcl_wait_set_t * wait_set) override

rclcpp/include/rclcpp/waitable.hpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,6 @@ class Waitable
3535
RCLCPP_PUBLIC
3636
virtual ~Waitable() = default;
3737

38-
RCLCPP_PUBLIC
39-
virtual
40-
void
41-
dummy() = 0;
42-
4338
/// Get the number of ready subscriptions
4439
/**
4540
* Returns a value of 0 by default.

rclcpp/test/rclcpp/executors/test_executors.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -336,12 +336,6 @@ class TestWaitable : public rclcpp::Waitable
336336
public:
337337
TestWaitable() = default;
338338

339-
// TODO(wjwwood): is this ok? do events continue to stay ready until they are
340-
// taken/checked?
341-
RCLCPP_PUBLIC
342-
void
343-
dummy() override {};
344-
345339
void
346340
add_to_wait_set(rcl_wait_set_t & wait_set) override
347341
{

rclcpp/test/rclcpp/executors/test_static_executor_entities_collector.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -230,12 +230,6 @@ TEST_F(TestStaticExecutorEntitiesCollector, add_remove_node_out_of_scope) {
230230
class TestWaitable : public rclcpp::Waitable
231231
{
232232
public:
233-
// TODO(wjwwood): is this ok? do events continue to stay ready until they are
234-
// taken/checked?
235-
RCLCPP_PUBLIC
236-
void
237-
dummy() override {};
238-
239233
void add_to_wait_set(rcl_wait_set_t &) override {}
240234

241235
bool is_ready(const rcl_wait_set_t &) override {return true;}

rclcpp/test/rclcpp/node_interfaces/test_node_waitables.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,6 @@
2828
class TestWaitable : public rclcpp::Waitable
2929
{
3030
public:
31-
// TODO(wjwwood): is this ok? do events continue to stay ready until they are
32-
// taken/checked?
33-
RCLCPP_PUBLIC
34-
void
35-
dummy() override {};
36-
3731
void add_to_wait_set(rcl_wait_set_t &) override {}
3832
bool is_ready(const rcl_wait_set_t &) override {return false;}
3933

rclcpp/test/rclcpp/strategies/test_allocator_memory_strategy.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,6 @@ static bool test_waitable_result = false;
3939
class TestWaitable : public rclcpp::Waitable
4040
{
4141
public:
42-
// TODO(wjwwood): is this ok? double check that this test doesn't need more
43-
RCLCPP_PUBLIC
44-
void
45-
dummy() override {};
46-
4742
void add_to_wait_set(rcl_wait_set_t &) override
4843

4944
{

rclcpp/test/rclcpp/test_memory_strategy.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,6 @@ typedef std::map<rclcpp::CallbackGroup::WeakPtr,
3535
class TestWaitable : public rclcpp::Waitable
3636
{
3737
public:
38-
// TODO(wjwwood): is this ok? do events continue to stay ready until they are
39-
// taken/checked?
40-
RCLCPP_PUBLIC
41-
void
42-
dummy() override {};
43-
4438
void add_to_wait_set(rcl_wait_set_t &) override {}
4539
bool is_ready(const rcl_wait_set_t &) override {return true;}
4640

rclcpp/test/rclcpp/wait_set_policies/test_dynamic_storage.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,6 @@ class TestWaitable : public rclcpp::Waitable
5151
TestWaitable()
5252
: is_ready_(false) {}
5353

54-
// TODO(wjwwood): is this ok? do events continue to stay ready until they are
55-
// taken/checked?
56-
RCLCPP_PUBLIC
57-
void
58-
dummy() override {};
59-
6054
void add_to_wait_set(rcl_wait_set_t &) override {}
6155

6256
bool is_ready(const rcl_wait_set_t &) override {return is_ready_;}

0 commit comments

Comments
 (0)