minor code shrink
This commit is contained in:
parent
dced5816df
commit
f9de4a394c
17
prepare.cpp
17
prepare.cpp
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user