Removed two dead storage bugs. Thanks to LLVMs very useful scan-build

static code analyzer.
This commit is contained in:
DennisOSRM 2012-07-10 13:47:04 +02:00
parent 14e110178a
commit cf1e2fa930

View File

@ -349,7 +349,6 @@ int main (int argc, char *argv[]) {
}
cout << "ok, after " << get_timestamp() - time << "s" << endl;
time = get_timestamp();
cout << "[extractor] setting number of nodes ... " << flush;
ios::pos_type positionInFile = fout.tellp();
@ -457,9 +456,8 @@ int main (int argc, char *argv[]) {
}
}
cout << "ok, after " << get_timestamp() - time << "s" << endl;
time = get_timestamp();
cout << "[extractor] setting number of edges ... " << flush;
fout.seekp(positionInFile);
fout.write((char*)&usedEdgeCounter, sizeof(unsigned));
fout.close();