From 85511a642f851100d0d856f4ecbe7fea7a7bb049 Mon Sep 17 00:00:00 2001 From: Loïc Blot Date: Wed, 16 Aug 2017 22:11:45 +0200 Subject: Cleanup various headers to reduce compilation times (#6255) * Cleanup various headers to reduce compilation times --- src/minimap.cpp | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) (limited to 'src/minimap.cpp') diff --git a/src/minimap.cpp b/src/minimap.cpp index 71a4c9c67..dab5f3aa5 100644 --- a/src/minimap.cpp +++ b/src/minimap.cpp @@ -18,16 +18,10 @@ with this program; if not, write to the Free Software Foundation, Inc., */ #include "minimap.h" -#include "threading/mutex_auto_lock.h" -#include "threading/semaphore.h" +#include "client.h" #include "clientmap.h" #include "settings.h" -#include "nodedef.h" -#include "porting.h" -#include "util/numeric.h" -#include "util/string.h" #include "mapblock.h" -#include #include "client/renderingengine.h" @@ -37,16 +31,11 @@ with this program; if not, write to the Free Software Foundation, Inc., MinimapUpdateThread::~MinimapUpdateThread() { - for (std::map::iterator - it = m_blocks_cache.begin(); - it != m_blocks_cache.end(); ++it) { - delete it->second; + for (auto &it : m_blocks_cache) { + delete it.second; } - for (std::deque::iterator - it = m_update_queue.begin(); - it != m_update_queue.end(); ++it) { - QueuedMinimapUpdate &q = *it; + for (auto &q : m_update_queue) { delete q.data; } } -- cgit v1.2.3