minor code shrink

This commit is contained in:
Dennis Luxen 2013-11-11 15:50:33 -05:00
parent dced5816df
commit f9de4a394c

View File

@ -236,18 +236,13 @@ int main (int argc, char *argv[]) {
NodeID nodeBasedNodeNumber = readBinaryOSRMGraphFromStream(in, edgeList, bollardNodes, trafficLightNodes, &internalToExternalNodeMapping, inputRestrictions); NodeID nodeBasedNodeNumber = readBinaryOSRMGraphFromStream(in, edgeList, bollardNodes, trafficLightNodes, &internalToExternalNodeMapping, inputRestrictions);
in.close(); in.close();
SimpleLogger().Write() << SimpleLogger().Write() <<
inputRestrictions.size() << inputRestrictions.size() << " restrictions, " <<
" restrictions, " << bollardNodes.size() << " bollard nodes, " <<
bollardNodes.size() << trafficLightNodes.size() << " traffic lights";
" bollard nodes, " <<
trafficLightNodes.size() <<
" traffic lights";
if(0 == edgeList.size()) { if( edgeList.empty() ) {
std::cerr << SimpleLogger().Write(logWARNING) << "The input data is broken. "
"The input data is broken. " "It is impossible to do any turns in this graph";
"It is impossible to do any turns in this graph" <<
std::endl;
return -1; return -1;
} }