From c05969e7bef4a0870a7810118a4a4f397450a461 Mon Sep 17 00:00:00 2001 From: Oliver Hamlet Date: Wed, 10 Jun 2015 16:22:27 +0100 Subject: [PATCH] Remove unused global LootHandler variable. --- src/gui/loot_handler.cpp | 17 +---------------- src/gui/loot_handler.h | 4 ---- 2 files changed, 1 insertion(+), 20 deletions(-) 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 //------------------