Skip to content

Commit b790207

Browse files
committed
No need for backward compatibility on self introduced option
Signed-off-by: Tim Clephas <[email protected]>
1 parent 83a9a1f commit b790207

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

rclcpp_components/src/component_container_isolated.cpp

+1-4
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ int main(int argc, char * argv[])
2727

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

3332
std::string executor_type = "single-threaded"; // default
@@ -37,9 +36,7 @@ int main(int argc, char * argv[])
3736
executor_type = args[i + 1];
3837
break;
3938
}
40-
} else if (
41-
args[i] == "--use-multi-threaded-executor" || args[i] == "--use_multi_threaded_executor")
42-
{
39+
} else if (args[i] == "--use_multi_threaded_executor") { // backward compatibility
4340
executor_type = "multi-threaded";
4441
}
4542
}

0 commit comments

Comments
 (0)