diff --git a/Algorithms/polyline_formatter.cpp b/Algorithms/polyline_formatter.cpp index d2ac916de50..f22faa86cd7 100644 --- a/Algorithms/polyline_formatter.cpp +++ b/Algorithms/polyline_formatter.cpp @@ -32,29 +32,6 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #include -JSON::String -PolylineFormatter::printEncodedString(const std::vector &polyline) const -{ - return JSON::String(PolylineCompressor().get_encoded_string(polyline)); -} - -JSON::Array -PolylineFormatter::printUnencodedString(const std::vector &polyline) const -{ - JSON::Array json_geometry_array; - for (const auto &segment : polyline) - { - if (segment.necessary) - { - JSON::Array json_coordinate; - json_coordinate.values.push_back(segment.location.lat / COORDINATE_PRECISION); - json_coordinate.values.push_back(segment.location.lon / COORDINATE_PRECISION); - json_geometry_array.values.push_back(json_coordinate); - } - } - return json_geometry_array; -} - std::string PolylineFormatter::printEncodedStr(const std::vector &polyline) const { return PolylineCompressor().get_encoded_string(polyline); diff --git a/Algorithms/polyline_formatter.hpp b/Algorithms/polyline_formatter.hpp index 0f503a0c40e..b4735b9b22b 100644 --- a/Algorithms/polyline_formatter.hpp +++ b/Algorithms/polyline_formatter.hpp @@ -30,8 +30,6 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. struct SegmentInformation; -#include "../DataStructures/JSONContainer.h" - #include #include @@ -46,10 +44,6 @@ struct PolylineFormatter std::string printEncodedStr(const std::vector &polyline) const; std::vector printUnencodedStr(const std::vector &polyline) const; - - JSON::String printEncodedString(const std::vector &polyline) const; - - JSON::Array printUnencodedString(const std::vector &polyline) const; }; #endif /* POLYLINE_FORMATTER_H_ */