From abde215bc3d25ba893de99d48bccd9ac08218e07 Mon Sep 17 00:00:00 2001 From: "Daniel J. Hofmann" Date: Mon, 18 Jul 2016 12:33:56 +0200 Subject: [PATCH] Remove semantically wrong ordering for LaneTupel --- include/util/guidance/turn_lanes.hpp | 1 - src/util/guidance/turn_lanes.cpp | 7 ------- 2 files changed, 8 deletions(-) diff --git a/include/util/guidance/turn_lanes.hpp b/include/util/guidance/turn_lanes.hpp index a4f9a7473..6a732679c 100644 --- a/include/util/guidance/turn_lanes.hpp +++ b/include/util/guidance/turn_lanes.hpp @@ -60,7 +60,6 @@ class LaneTupel bool operator==(const LaneTupel other) const; bool operator!=(const LaneTupel other) const; - bool operator<(const LaneTupel other) const; LaneID lanes_in_turn; LaneID first_lane_from_the_right; diff --git a/src/util/guidance/turn_lanes.cpp b/src/util/guidance/turn_lanes.cpp index cba73fdb1..c7c45a8ad 100644 --- a/src/util/guidance/turn_lanes.cpp +++ b/src/util/guidance/turn_lanes.cpp @@ -31,13 +31,6 @@ bool LaneTupel::operator==(const LaneTupel other) const bool LaneTupel::operator!=(const LaneTupel other) const { return !(*this == other); } -// comparation based on interpretation as unsigned 32bit integer -bool LaneTupel::operator<(const LaneTupel other) const -{ - return std::tie(lanes_in_turn, first_lane_from_the_right) < - std::tie(other.lanes_in_turn, other.first_lane_from_the_right); -} - } // namespace guidance } // namespace util } // namespace osrm