From 6cd55e535cb830cd9f614b2f63e089b1a6830a0d Mon Sep 17 00:00:00 2001 From: "Daniel J. Hofmann" Date: Tue, 9 Feb 2016 09:38:25 -0800 Subject: [PATCH] Removes potentially dangerous and misleading lat, lon subscript oeprator --- include/extractor/query_node.hpp | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/include/extractor/query_node.hpp b/include/extractor/query_node.hpp index 98d03210d..c97a986be 100644 --- a/include/extractor/query_node.hpp +++ b/include/extractor/query_node.hpp @@ -3,8 +3,6 @@ #include "util/typedefs.hpp" -#include - #include "osrm/coordinate.hpp" #include @@ -44,21 +42,6 @@ struct QueryNode return QueryNode(static_cast(90 * COORDINATE_PRECISION), static_cast(180 * COORDINATE_PRECISION), MAX_OSM_NODEID); } - - value_type operator[](const std::size_t n) const - { - switch (n) - { - case 1: - return lat; - case 0: - return lon; - default: - break; - } - BOOST_ASSERT_MSG(false, "should not happen"); - return std::numeric_limits::lowest(); - } }; } }