diff --git a/src/challenges/unlock_manager.cpp b/src/challenges/unlock_manager.cpp index d602d937d..ae0e208e8 100644 --- a/src/challenges/unlock_manager.cpp +++ b/src/challenges/unlock_manager.cpp @@ -89,15 +89,6 @@ UnlockManager::~UnlockManager() delete i->second; } - - std::map::iterator it; - for (it = m_game_slots.begin(); it != m_game_slots.end(); it++) - { - delete it->second; - } - - // sfx_manager is destroyed before UnlockManager is, so SFX will be already deleted - // sfx_manager->deleteSFX(m_locked_sound); } // ~UnlockManager //----------------------------------------------------------------------------- diff --git a/src/challenges/unlock_manager.hpp b/src/challenges/unlock_manager.hpp index dd4c54987..70a5fd1f6 100644 --- a/src/challenges/unlock_manager.hpp +++ b/src/challenges/unlock_manager.hpp @@ -46,8 +46,6 @@ private: typedef std::map AllChallengesType; AllChallengesType m_all_challenges; - std::map m_game_slots; - void readAllChallengesInDirs(const std::vector* all_dirs); friend class GameSlot;