From ba4290340d853478f351dd1380534826069f8d3d Mon Sep 17 00:00:00 2001 From: Dennis Luxen Date: Tue, 24 Sep 2013 18:59:44 +0200 Subject: [PATCH] removing debug output and calling it a day --- DataStructures/StaticGraph.h | 2 -- prepare.cpp | 9 --------- 2 files changed, 11 deletions(-) diff --git a/DataStructures/StaticGraph.h b/DataStructures/StaticGraph.h index e269f620b..b572d7f2e 100644 --- a/DataStructures/StaticGraph.h +++ b/DataStructures/StaticGraph.h @@ -104,10 +104,8 @@ public: #ifndef NDEBUG Percent p(GetNumberOfNodes()); for(unsigned u = 0; u < GetNumberOfNodes(); ++u) { - SimpleLogger().Write() << "[" << u << "], 1st: " << BeginEdges(u) << ", last: " << EndEdges(u); for(unsigned eid = BeginEdges(u); eid < EndEdges(u); ++eid) { unsigned v = GetTarget(eid); - SimpleLogger().Write() << "Edge (" << u << "," << v << ")"; EdgeData & data = GetEdgeData(eid); if(data.shortcut) { unsigned eid2 = FindEdgeInEitherDirection(u, data.id); diff --git a/prepare.cpp b/prepare.cpp index c2b243917..35f047e19 100644 --- a/prepare.cpp +++ b/prepare.cpp @@ -332,7 +332,6 @@ int main (int argc, char *argv[]) { std::ofstream hsgr_output_stream(graphOut.c_str(), std::ios::binary); hsgr_output_stream.write((char*)&uuid_orig, sizeof(UUID) ); BOOST_FOREACH(const QueryEdge & edge, contractedEdgeList) { - SimpleLogger().Write() << "edge (" << edge.source << "," << edge.target << ")"; if(edge.source > numberOfNodes) { numberOfNodes = edge.source; } @@ -353,18 +352,10 @@ int main (int argc, char *argv[]) { ++edge; _nodes[node].firstEdge = position; //=edge position += edge - lastEdge; //remove - SimpleLogger().Write() << "_nodes[" << node << "].firstEdge = " << _nodes[node].firstEdge; } _nodes[_nodes.size()-1].firstEdge = _nodes[_nodes.size()-2].firstEdge; - SimpleLogger().Write() << "position: " << position; ++numberOfNodes; - SimpleLogger().Write() << "no. of nodes: " << numberOfNodes << ", edges: " << edge; - SimpleLogger().Write() << "_nodes.size(): " << _nodes.size(); - for(unsigned i = 0; i < _nodes.size(); ++i) { - SimpleLogger().Write() << _nodes[i].firstEdge; - } - BOOST_ASSERT_MSG(_nodes.size() == numberOfNodes, "no. of nodes dont match"); //Serialize numberOfNodes, nodes