From 365e4ae0faee79ff7b62396f27667e8315ba94d4 Mon Sep 17 00:00:00 2001 From: Loic Blot Date: Thu, 5 Mar 2015 10:43:08 +0100 Subject: Performance improvement: Use std::list instead of std::vector for request_media, Server::getModNames, Environment::m_simple_objects. * Also remove unused Server::m_modspaths --- src/server.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/server.h') diff --git a/src/server.h b/src/server.h index ee9199da7..50a8861fa 100644 --- a/src/server.h +++ b/src/server.h @@ -327,7 +327,7 @@ public: IWritableCraftDefManager* getWritableCraftDefManager(); const ModSpec* getModSpec(const std::string &modname); - void getModNames(std::list &modlist); + void getModNames(std::vector &modlist); std::string getBuiltinLuaPath(); inline std::string getWorldPath() { return m_path_world; } @@ -588,9 +588,6 @@ private: Random stuff */ - // Mod parent directory paths - std::list m_modspaths; - bool m_shutdown_requested; /* -- cgit v1.2.3