Skip to content

Commit c55262a

Browse files
committed
Remove more unused code
1 parent 4b8ff0c commit c55262a

File tree

2 files changed

+0
-18
lines changed

2 files changed

+0
-18
lines changed

controller_manager/include/controller_manager/controller_spec.hpp

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -544,22 +544,6 @@ struct ControllerChainSpec
544544
class ControllerChainDependencyGraph
545545
{
546546
public:
547-
void add_dependency(const std::string & predecessor, const std::string & successor)
548-
{
549-
if (controller_graph_.count(predecessor) == 0)
550-
{
551-
controller_graph_[predecessor] = ControllerPeerInfo();
552-
controller_graph_[predecessor].name = predecessor;
553-
}
554-
if (controller_graph_.count(successor) == 0)
555-
{
556-
controller_graph_[successor] = ControllerPeerInfo();
557-
controller_graph_[successor].name = successor;
558-
}
559-
controller_graph_[predecessor].successors.push_back(&controller_graph_[successor]);
560-
controller_graph_[successor].predecessors.push_back(&controller_graph_[predecessor]);
561-
}
562-
563547
void add_dependency(const ControllerPeerInfo & predecessor, const ControllerPeerInfo & successor)
564548
{
565549
if (controller_graph_.count(predecessor.name) == 0)

controller_manager/src/controller_manager.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1341,7 +1341,6 @@ controller_interface::return_type ControllerManager::configure_controller(
13411341
controller_manager::ControllersListIterator ctrl_it;
13421342
if (is_interface_a_chained_interface(cmd_itf, controllers, ctrl_it))
13431343
{
1344-
controller_chain_dependency_graph_.add_dependency(controller_name, ctrl_it->info.name);
13451344
ros2_control::add_item(
13461345
controller_chain_spec_[controller_name].following_controllers, ctrl_it->info.name);
13471346
ros2_control::add_item(
@@ -1356,7 +1355,6 @@ controller_interface::return_type ControllerManager::configure_controller(
13561355
controller_manager::ControllersListIterator ctrl_it;
13571356
if (is_interface_a_chained_interface(state_itf, controllers, ctrl_it))
13581357
{
1359-
controller_chain_dependency_graph_.add_dependency(ctrl_it->info.name, controller_name);
13601358
ros2_control::add_item(
13611359
controller_chain_spec_[controller_name].preceding_controllers, ctrl_it->info.name);
13621360
ros2_control::add_item(

0 commit comments

Comments
 (0)