From b9149658a85015287729e24ec0a0164f972d7b5b Mon Sep 17 00:00:00 2001 From: Dennis Luxen Date: Wed, 18 Dec 2013 12:00:35 +0100 Subject: [PATCH] remove unused variable --- RoutingAlgorithms/ShortestPathRouting.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/RoutingAlgorithms/ShortestPathRouting.h b/RoutingAlgorithms/ShortestPathRouting.h index 0b1f23ec6..6738155a6 100644 --- a/RoutingAlgorithms/ShortestPathRouting.h +++ b/RoutingAlgorithms/ShortestPathRouting.h @@ -29,9 +29,11 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #define SHORTESTPATHROUTING_H_ #include +#include #include "BasicRoutingInterface.h" #include "../DataStructures/SearchEngineData.h" +#include "../typedefs.h" template class ShortestPathRouting : public BasicRoutingInterface{ @@ -89,7 +91,6 @@ public: QueryHeap & reverse_heap2 = *(engine_working_data.backwardHeap2); int current_leg = 0; - int previous_leg = 0; //Get distance to next pair of target nodes. BOOST_FOREACH( const PhantomNodes & phantom_node_pair, phantom_nodes_vector @@ -344,7 +345,6 @@ public: distance1 = local_upper_bound1; distance2 = local_upper_bound2; - previous_leg = current_leg; ++current_leg; } @@ -361,7 +361,6 @@ public: } raw_route_data.lengthOfShortestPath = std::min(distance1, distance2); } - }; #endif /* SHORTESTPATHROUTING_H_ */