summaryrefslogtreecommitdiff
path: root/src/map.h
diff options
context:
space:
mode:
authorLoic Blot <loic.blot@unix-experience.fr>2015-03-04 16:58:04 +0100
committerLoic Blot <loic.blot@unix-experience.fr>2015-03-04 17:02:36 +0100
commit06f328207fa0a3e606992d3569b061b335eb0f48 (patch)
tree324ce16ead2a4080882bd23077d93e446811add5 /src/map.h
parent2066655aae2022384fc12a10c04dccfd2996f0ac (diff)
downloadminetest-06f328207fa0a3e606992d3569b061b335eb0f48.tar.gz
minetest-06f328207fa0a3e606992d3569b061b335eb0f48.tar.bz2
minetest-06f328207fa0a3e606992d3569b061b335eb0f48.zip
ABMHandler and player_collisions use sequential read/write. Switch from std::list to std::vector
* Also remove dead code Map::unloadUnusedData which is dead since a long time
Diffstat (limited to 'src/map.h')
-rw-r--r--src/map.h12
1 files changed, 1 insertions, 11 deletions
diff --git a/src/map.h b/src/map.h
index f4ea54f30..ab5f45ab9 100644
--- a/src/map.h
+++ b/src/map.h
@@ -288,17 +288,7 @@ public:
// Deletes sectors and their blocks from memory
// Takes cache into account
// If deleted sector is in sector cache, clears cache
- void deleteSectors(std::list<v2s16> &list);
-
-#if 0
- /*
- Unload unused data
- = flush changed to disk and delete from memory, if usage timer of
- block is more than timeout
- */
- void unloadUnusedData(float timeout,
- core::list<v3s16> *deleted_blocks=NULL);
-#endif
+ void deleteSectors(std::vector<v2s16> &list);
// For debug printing. Prints "Map: ", "ServerMap: " or "ClientMap: "
virtual void PrintInfo(std::ostream &out);