diff --git a/src/gui/loot_handler.cpp b/src/gui/loot_handler.cpp index 5b26e6f9..a69df9f3 100644 --- a/src/gui/loot_handler.cpp +++ b/src/gui/loot_handler.cpp @@ -56,22 +56,7 @@ namespace fs = boost::filesystem; namespace loc = boost::locale; namespace loot { - namespace { - LootHandler * g_instance = NULL; - } - - LootHandler::LootHandler() : is_closing_(false) { - assert(!g_instance); - g_instance = this; - } - - LootHandler::~LootHandler() { - g_instance = NULL; - } - - LootHandler* LootHandler::GetInstance() { - return g_instance; - } + LootHandler::LootHandler() : is_closing_(false) {} // CefClient methods //------------------ diff --git a/src/gui/loot_handler.h b/src/gui/loot_handler.h index 7a278395..f12b4fbc 100644 --- a/src/gui/loot_handler.h +++ b/src/gui/loot_handler.h @@ -38,10 +38,6 @@ namespace loot { public CefRequestHandler { public: LootHandler(); - ~LootHandler(); - - // Provide access to the single global instance of this object. - static LootHandler * GetInstance(); // CefClient methods //------------------