summaryrefslogtreecommitdiff
path: root/src/minimap.cpp
diff options
context:
space:
mode:
authorLoïc Blot <nerzhul@users.noreply.github.com>2017-08-16 22:11:45 +0200
committerGitHub <noreply@github.com>2017-08-16 22:11:45 +0200
commit85511a642f851100d0d856f4ecbe7fea7a7bb049 (patch)
treeb25e4196578cb4734008642a29101393c6d9c457 /src/minimap.cpp
parent816bca32ac69f58b7de881d68689c6a1e3897a0e (diff)
downloadminetest-85511a642f851100d0d856f4ecbe7fea7a7bb049.tar.gz
minetest-85511a642f851100d0d856f4ecbe7fea7a7bb049.tar.bz2
minetest-85511a642f851100d0d856f4ecbe7fea7a7bb049.zip
Cleanup various headers to reduce compilation times (#6255)
* Cleanup various headers to reduce compilation times
Diffstat (limited to 'src/minimap.cpp')
-rw-r--r--src/minimap.cpp19
1 files changed, 4 insertions, 15 deletions
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 <math.h>
#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<v3s16, MinimapMapblock *>::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<QueuedMinimapUpdate>::iterator
- it = m_update_queue.begin();
- it != m_update_queue.end(); ++it) {
- QueuedMinimapUpdate &q = *it;
+ for (auto &q : m_update_queue) {
delete q.data;
}
}