remove debug code, make variables const

This commit is contained in:
Dennis Luxen 2014-04-11 16:26:10 -04:00
parent a4d6e5c9cc
commit d09be5a80e

View File

@ -395,12 +395,10 @@ public:
FixedPointCoordinate GetCoordinateOfNode( FixedPointCoordinate GetCoordinateOfNode(
const unsigned id const unsigned id
) const { ) const {
// const unsigned coordinate_index = m_via_node_list.at(id);
return m_coordinate_list->at(id); return m_coordinate_list->at(id);
}; };
bool EdgeIsCompressed( const unsigned id ) const { bool EdgeIsCompressed( const unsigned id ) const {
// const NodeID node = m_via_node_list.at(id);
return m_egde_is_compressed.at(id); return m_egde_is_compressed.at(id);
} }
@ -427,7 +425,6 @@ public:
PhantomNode & resulting_phantom_node, PhantomNode & resulting_phantom_node,
const unsigned zoom_level const unsigned zoom_level
) const { ) const {
// SimpleLogger().Write(logDEBUG) << "name id: " << resulting_phantom_node.name_id;
const bool found = m_static_rtree->FindPhantomNodeForCoordinate( const bool found = m_static_rtree->FindPhantomNodeForCoordinate(
input_coordinate, input_coordinate,
resulting_phantom_node, resulting_phantom_node,
@ -451,8 +448,8 @@ public:
name_id < m_name_begin_indices.size(), name_id < m_name_begin_indices.size(),
"name id too high" "name id too high"
); );
unsigned begin_index = m_name_begin_indices[name_id]; const unsigned begin_index = m_name_begin_indices[name_id];
unsigned end_index = m_name_begin_indices[name_id+1]; const unsigned end_index = m_name_begin_indices[name_id+1];
BOOST_ASSERT_MSG( BOOST_ASSERT_MSG(
begin_index < m_names_char_list.size(), begin_index < m_names_char_list.size(),
"begin index of name too high" "begin index of name too high"