From d09be5a80ea4ac24c838faa9e3f9484bba5a39d7 Mon Sep 17 00:00:00 2001 From: Dennis Luxen Date: Fri, 11 Apr 2014 16:26:10 -0400 Subject: [PATCH] remove debug code, make variables const --- Server/DataStructures/InternalDataFacade.h | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Server/DataStructures/InternalDataFacade.h b/Server/DataStructures/InternalDataFacade.h index 0e6769864..a18b93a28 100644 --- a/Server/DataStructures/InternalDataFacade.h +++ b/Server/DataStructures/InternalDataFacade.h @@ -395,12 +395,10 @@ public: FixedPointCoordinate GetCoordinateOfNode( const unsigned id ) const { - // const unsigned coordinate_index = m_via_node_list.at(id); return m_coordinate_list->at(id); }; bool EdgeIsCompressed( const unsigned id ) const { - // const NodeID node = m_via_node_list.at(id); return m_egde_is_compressed.at(id); } @@ -427,7 +425,6 @@ public: PhantomNode & resulting_phantom_node, const unsigned zoom_level ) const { - // SimpleLogger().Write(logDEBUG) << "name id: " << resulting_phantom_node.name_id; const bool found = m_static_rtree->FindPhantomNodeForCoordinate( input_coordinate, resulting_phantom_node, @@ -451,8 +448,8 @@ public: name_id < m_name_begin_indices.size(), "name id too high" ); - unsigned begin_index = m_name_begin_indices[name_id]; - unsigned end_index = m_name_begin_indices[name_id+1]; + const unsigned begin_index = m_name_begin_indices[name_id]; + const unsigned end_index = m_name_begin_indices[name_id+1]; BOOST_ASSERT_MSG( begin_index < m_names_char_list.size(), "begin index of name too high"