Skip to content

Commit

Permalink
No need for backward compatibility on self introduced option
Browse files Browse the repository at this point in the history
  • Loading branch information
Timple committed Jun 25, 2024
1 parent 83a9a1f commit 9bcecb7
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions rclcpp_components/src/component_container_isolated.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ int main(int argc, char * argv[])

// parse arguments
// valid entries: --executor-type single-threaded, --executor-type multi-threaded, --executor-type events
// --use-multi-threaded-executor and --use_multi_threaded_executor are kept for backward compatibility
std::vector<std::string> args = rclcpp::remove_ros_arguments(argc, argv);

std::string executor_type = "single-threaded"; // default
Expand All @@ -37,9 +36,7 @@ int main(int argc, char * argv[])
executor_type = args[i + 1];
break;
}
} else if (
args[i] == "--use-multi-threaded-executor" || args[i] == "--use_multi_threaded_executor")
{
} else if (args[i] == "--use_multi_threaded_executor") { // backward compatibility
executor_type = "multi-threaded";
}
}
Expand Down

0 comments on commit 9bcecb7

Please sign in to comment.