diff --git a/routing/turns_tts_text.cpp b/routing/turns_tts_text.cpp index 4682490d31..f296348818 100644 --- a/routing/turns_tts_text.cpp +++ b/routing/turns_tts_text.cpp @@ -113,21 +113,7 @@ string GetRoundaboutTextId(Notification const & notification) if (notification.m_exitNum == 0 || notification.m_exitNum > kMaxSoundedExit) return "leave_the_roundabout"; - if (notification.m_exitNum < 4) - { - switch (notification.m_exitNum) - { - case 1: - return "take_the_1st_exit"; - case 2: - return "take_the_2nd_exit"; - case 3: - return "take_the_3rd_exit"; - } - ASSERT(false, ()); - return string(); - } - return "take_the_" + strings::to_string(static_cast(notification.m_exitNum)) + "th_exit"; + return "take_the_" + strings::to_string(static_cast(notification.m_exitNum)) + "_exit"; } string GetYouArriveTextId(Notification const & notification) diff --git a/routing/turns_tts_text.hpp b/routing/turns_tts_text.hpp index 8ffe750466..8072b0e6bf 100644 --- a/routing/turns_tts_text.hpp +++ b/routing/turns_tts_text.hpp @@ -42,7 +42,7 @@ private: /// Generates text message id about the distance of the notification. For example: In 300 meters. string GetDistanceTextId(Notification const & notification); /// Generates text message id for roundabouts. -/// For example: leave_the_roundabout or take_the_3rd_exit +/// For example: leave_the_roundabout or take_the_3_exit string GetRoundaboutTextId(Notification const & notification); /// Generates text message id for the finish of the route. /// For example: destination or you_have_reached_the_destination