From 06f328207fa0a3e606992d3569b061b335eb0f48 Mon Sep 17 00:00:00 2001 From: Loic Blot Date: Wed, 4 Mar 2015 16:58:04 +0100 Subject: 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 --- src/map.h | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'src/map.h') 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 &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 *deleted_blocks=NULL); -#endif + void deleteSectors(std::vector &list); // For debug printing. Prints "Map: ", "ServerMap: " or "ClientMap: " virtual void PrintInfo(std::ostream &out); -- cgit v1.2.3