Skip to content

Commit 02641db

Browse files
committed
remove public method from #709
1 parent b0dd2b2 commit 02641db

File tree

2 files changed

+1
-20
lines changed

2 files changed

+1
-20
lines changed

include/behaviortree_cpp/actions/unset_blackboard_node.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class UnsetBlackboardNode : public SyncActionNode
4141
{
4242
throw RuntimeError("missing input port [key]");
4343
}
44-
removeBlackboardEntry(key);
44+
config().blackboard->unset(key);
4545
return NodeStatus::SUCCESS;
4646
}
4747
};

include/behaviortree_cpp/tree_node.h

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -248,13 +248,6 @@ class TreeNode
248248
template <typename T>
249249
Result setOutput(const std::string& key, const T& value);
250250

251-
/**
252-
* @brief removeBlackboardEntry erases an entry from the blackboard
253-
* @param key the name of the entry.
254-
* @return valid Result, if succesful.
255-
*/
256-
Result removeBlackboardEntry(const std::string& key);
257-
258251
/**
259252
* @brief getLockedPortContent should be used when:
260253
*
@@ -508,18 +501,6 @@ inline Result TreeNode::setOutput(const std::string& key, const T& value)
508501
return {};
509502
}
510503

511-
inline Result TreeNode::removeBlackboardEntry(const std::string& key)
512-
{
513-
if (!config().blackboard)
514-
{
515-
return nonstd::make_unexpected("setOutput() failed: trying to access a "
516-
"Blackboard(BB) entry, but BB is invalid");
517-
}
518-
519-
config().blackboard->unset(key);
520-
return {};
521-
}
522-
523504
// Utility function to fill the list of ports using T::providedPorts();
524505
template <typename T>
525506
inline void assignDefaultRemapping(NodeConfig& config)

0 commit comments

Comments
 (0)