Retire Application class

It is a redundant boiler plate, just call initialization and
resource release directly from main()

No functional change.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
Marco Costalba
2010-11-22 14:55:56 +01:00
parent 00d9fe8af0
commit efeb37c33f
12 changed files with 30 additions and 124 deletions

View File

@@ -376,7 +376,7 @@ void Book::open(const string& fName) {
return;
}
cerr << "Failed to open book file " << fileName << endl;
Application::exit_with_failure();
exit(EXIT_FAILURE);
}
@@ -496,7 +496,7 @@ void Book::read_entry(BookEntry& entry, int idx) {
if (!good())
{
cerr << "Failed to read book entry at index " << idx << endl;
Application::exit_with_failure();
exit(EXIT_FAILURE);
}
}