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);
in.close();
SimpleLogger().Write() <<
inputRestrictions.size() <<
" restrictions, " <<
bollardNodes.size() <<
" bollard nodes, " <<
trafficLightNodes.size() <<
" traffic lights";
inputRestrictions.size() << " restrictions, " <<
bollardNodes.size() << " bollard nodes, " <<
trafficLightNodes.size() << " traffic lights";
if(0 == edgeList.size()) {
std::cerr <<
"The input data is broken. "
"It is impossible to do any turns in this graph" <<
std::endl;
if( edgeList.empty() ) {
SimpleLogger().Write(logWARNING) << "The input data is broken. "
"It is impossible to do any turns in this graph";
return -1;
}