From b790207db178766d2be27aa3dd76e2fe9026c105 Mon Sep 17 00:00:00 2001 From: Tim Clephas Date: Tue, 25 Jun 2024 09:54:44 +0200 Subject: [PATCH] No need for backward compatibility on self introduced option Signed-off-by: Tim Clephas --- rclcpp_components/src/component_container_isolated.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/rclcpp_components/src/component_container_isolated.cpp b/rclcpp_components/src/component_container_isolated.cpp index fff342ec50..ead319f0f6 100644 --- a/rclcpp_components/src/component_container_isolated.cpp +++ b/rclcpp_components/src/component_container_isolated.cpp @@ -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 args = rclcpp::remove_ros_arguments(argc, argv); std::string executor_type = "single-threaded"; // default @@ -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"; } }