From 9e04e9f43068a2a1d9bb0d587fdf216c06bb70c7 Mon Sep 17 00:00:00 2001 From: Prajakta Gokhale Date: Mon, 20 Apr 2020 19:45:18 -0700 Subject: [PATCH] Remove unnecessary if statement Signed-off-by: Prajakta Gokhale --- rclcpp/include/rclcpp/node_impl.hpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/rclcpp/include/rclcpp/node_impl.hpp b/rclcpp/include/rclcpp/node_impl.hpp index 669df9ee91..e29edeb22e 100644 --- a/rclcpp/include/rclcpp/node_impl.hpp +++ b/rclcpp/include/rclcpp/node_impl.hpp @@ -92,11 +92,6 @@ Node::create_subscription( const SubscriptionOptionsWithAllocator & options, typename MessageMemoryStrategyT::SharedPtr msg_mem_strat) { - // Setup topic statistics collector if enabled. - if (rclcpp::detail::resolve_enable_topic_statistics(options, *node_base_)) { - // TODO(@dabonnie, @prajakta-gokhale): https://github.com/ros2/ros2/issues/901. - } - return rclcpp::create_subscription( *this, extend_name_with_sub_namespace(topic_name, this->get_sub_namespace()),