mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-20 00:56:39 +08: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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user