diff options
author | Loic Blot <loic.blot@unix-experience.fr> | 2016-10-06 19:20:12 +0200 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2016-10-06 22:37:26 +0200 |
commit | 155288ee981c70f505526347cb2bcda4df1c8e6b (patch) | |
tree | 582095bc50cb60d3dedb9f6a08e908324a3da365 /src/network | |
parent | b66a5d2f8842cc84ae44257dc0ead255e5b0538f (diff) | |
download | minetest-155288ee981c70f505526347cb2bcda4df1c8e6b.tar.gz minetest-155288ee981c70f505526347cb2bcda4df1c8e6b.tar.bz2 minetest-155288ee981c70f505526347cb2bcda4df1c8e6b.zip |
use unordered containers where possible (patch 4 on X)
Also remove some unused parameters/functions
Diffstat (limited to 'src/network')
-rw-r--r-- | src/network/serverpackethandler.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/network/serverpackethandler.cpp b/src/network/serverpackethandler.cpp index a8bfd9068..f9061cc4f 100644 --- a/src/network/serverpackethandler.cpp +++ b/src/network/serverpackethandler.cpp @@ -1693,9 +1693,7 @@ void Server::handleCommand_RemovedSounds(NetworkPacket* pkt) *pkt >> id; - std::map<s32, ServerPlayingSound>::iterator i = - m_playing_sounds.find(id); - + UNORDERED_MAP<s32, ServerPlayingSound>::iterator i = m_playing_sounds.find(id); if (i == m_playing_sounds.end()) continue; |