mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 08:43:09 +00:00
Remove unused members in Application class
Also rearrange a bit the remining methods. No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
parent
50f92bed06
commit
bb1b049b83
2 changed files with 3 additions and 14 deletions
|
@ -65,13 +65,9 @@ Application::~Application() {
|
|||
|
||||
void Application::initialize() {
|
||||
|
||||
instance();
|
||||
}
|
||||
|
||||
Application& Application::instance() {
|
||||
|
||||
// A static Application object is allocated
|
||||
// once only when this function is called.
|
||||
static Application singleton;
|
||||
return singleton;
|
||||
}
|
||||
|
||||
void Application::exit_with_failure() {
|
||||
|
|
|
@ -29,18 +29,11 @@ class Application {
|
|||
|
||||
Application();
|
||||
Application(const Application&);
|
||||
~Application();
|
||||
|
||||
public:
|
||||
static void initialize();
|
||||
static void exit_with_failure();
|
||||
|
||||
~Application();
|
||||
|
||||
private:
|
||||
static Application& instance();
|
||||
|
||||
void init();
|
||||
void deallocateAll();
|
||||
};
|
||||
|
||||
#endif // !defined(APPLICATION_H_INCLUDED)
|
||||
|
|
Loading…
Add table
Reference in a new issue