aboutsummaryrefslogtreecommitdiff
path: root/src/server.h
diff options
context:
space:
mode:
authorLoic Blot <loic.blot@unix-experience.fr>2015-03-05 10:43:08 +0100
committerLoic Blot <loic.blot@unix-experience.fr>2015-03-05 10:44:48 +0100
commit365e4ae0faee79ff7b62396f27667e8315ba94d4 (patch)
tree80b4ef80a339433562e23cd47980f4aae87bf938 /src/server.h
parentb214cde5b4a833e1826ec6850b95bf1938c8b0a0 (diff)
downloaddragonfireclient-365e4ae0faee79ff7b62396f27667e8315ba94d4.tar.xz
Performance improvement: Use std::list instead of std::vector for request_media, Server::getModNames, Environment::m_simple_objects.
* Also remove unused Server::m_modspaths
Diffstat (limited to 'src/server.h')
-rw-r--r--src/server.h5
1 files changed, 1 insertions, 4 deletions
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<std::string> &modlist);
+ void getModNames(std::vector<std::string> &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<std::string> m_modspaths;
-
bool m_shutdown_requested;
/*