Skip to content

Commit

Permalink
remove has_any_key method
Browse files Browse the repository at this point in the history
  • Loading branch information
saikishor committed Mar 4, 2025
1 parent 16700aa commit f1a4f14
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions joint_state_broadcaster/src/joint_state_broadcaster.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -208,23 +208,6 @@ controller_interface::CallbackReturn JointStateBroadcaster::on_deactivate(
return CallbackReturn::SUCCESS;
}

template <typename T>
bool has_any_key(
const std::unordered_map<std::string, T> & map, const std::vector<std::string> & keys)
{
bool found_key = false;
for (const auto & key_item : map)
{
const auto & key = key_item.first;
if (std::find(keys.cbegin(), keys.cend(), key) != keys.cend())
{
found_key = true;
break;
}
}
return found_key;
}

bool JointStateBroadcaster::init_joint_data()
{
joint_names_.clear();
Expand Down

0 comments on commit f1a4f14

Please sign in to comment.