From 461a397eddedd0403149fce670160dd2d43c6890 Mon Sep 17 00:00:00 2001 From: MarijaGolubovic <93673097+MarijaGolubovic@users.noreply.github.com> Date: Fri, 1 Jul 2022 20:09:37 +0200 Subject: [PATCH] Delete duplicate `strip_server_name` function (#225) --- .../mep3_behavior_tree/team_color_strategy_mirror.hpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/mep3_behavior_tree/include/mep3_behavior_tree/team_color_strategy_mirror.hpp b/mep3_behavior_tree/include/mep3_behavior_tree/team_color_strategy_mirror.hpp index a33fcddbd..3110e2471 100644 --- a/mep3_behavior_tree/include/mep3_behavior_tree/team_color_strategy_mirror.hpp +++ b/mep3_behavior_tree/include/mep3_behavior_tree/team_color_strategy_mirror.hpp @@ -195,14 +195,6 @@ class StrategyMirror { } } - static std::string strip_server_name(const std::string& full_name) { - std::string stripped_name = full_name; - auto separator = full_name.find_last_of("/"); - if (separator != std::string::npos && separator < stripped_name.length() - 1) { - stripped_name = stripped_name.substr(separator + 1, stripped_name.length() - (separator + 1)); - } - return stripped_name; - } static std::string strip_server_name(const std::string& full_name) { std::string stripped_name = full_name;