Skip to content

Commit 1aaade8

Browse files
authored
remove get_notify_guard_condition from NodeBaseInterface. (#2839)
Signed-off-by: Tomoya Fujita <[email protected]>
1 parent 88d8a9e commit 1aaade8

File tree

3 files changed

+0
-26
lines changed

3 files changed

+0
-26
lines changed

rclcpp/include/rclcpp/node_interfaces/node_base.hpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -121,11 +121,6 @@ class NodeBase : public NodeBaseInterface, public std::enable_shared_from_this<N
121121
std::atomic_bool &
122122
get_associated_with_executor_atomic() override;
123123

124-
[[deprecated("Use get_shared_notify_guard_condition or trigger_notify_guard_condition instead")]]
125-
RCLCPP_PUBLIC
126-
rclcpp::GuardCondition &
127-
get_notify_guard_condition() override;
128-
129124
RCLCPP_PUBLIC
130125
rclcpp::GuardCondition::SharedPtr
131126
get_shared_notify_guard_condition() override;

rclcpp/include/rclcpp/node_interfaces/node_base_interface.hpp

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -144,17 +144,6 @@ class NodeBaseInterface
144144
std::atomic_bool &
145145
get_associated_with_executor_atomic() = 0;
146146

147-
/// Return a guard condition that should be notified when the internal node state changes.
148-
/**
149-
* For example, this should be notified when a publisher is added or removed.
150-
*
151-
* \return the GuardCondition if it is valid, else throw runtime error
152-
*/
153-
RCLCPP_PUBLIC
154-
virtual
155-
rclcpp::GuardCondition &
156-
get_notify_guard_condition() = 0;
157-
158147
/// Return a guard condition that should be notified when the internal node state changes.
159148
/**
160149
* For example, this should be notified when a publisher is added or removed.

rclcpp/src/rclcpp/node_interfaces/node_base.cpp

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -275,16 +275,6 @@ NodeBase::get_associated_with_executor_atomic()
275275
return associated_with_executor_;
276276
}
277277

278-
rclcpp::GuardCondition &
279-
NodeBase::get_notify_guard_condition()
280-
{
281-
std::lock_guard<std::recursive_mutex> notify_condition_lock(notify_guard_condition_mutex_);
282-
if (!notify_guard_condition_is_valid_) {
283-
throw std::runtime_error("failed to get notify guard condition because it is invalid");
284-
}
285-
return *notify_guard_condition_;
286-
}
287-
288278
rclcpp::GuardCondition::SharedPtr
289279
NodeBase::get_shared_notify_guard_condition()
290280
{

0 commit comments

Comments
 (0)