From 7fa062881d58e1d8d1eb28c3658eec067f67747a Mon Sep 17 00:00:00 2001 From: hiker Date: Tue, 8 Dec 2015 08:08:00 +1100 Subject: [PATCH] Removed unused variable. --- src/network/network_world.cpp | 3 --- src/network/network_world.hpp | 1 - 2 files changed, 4 deletions(-) diff --git a/src/network/network_world.cpp b/src/network/network_world.cpp index 09ac05ebf..b81693385 100644 --- a/src/network/network_world.cpp +++ b/src/network/network_world.cpp @@ -11,7 +11,6 @@ NetworkWorld::NetworkWorld() { m_running = false; - m_has_run = false; } // NetworkWorld // ---------------------------------------------------------------------------- @@ -23,8 +22,6 @@ NetworkWorld::~NetworkWorld() // ---------------------------------------------------------------------------- void NetworkWorld::update(float dt) { - if (!m_has_run) - m_has_run = true; SynchronizationProtocol* protocol = static_cast( ProtocolManager::getInstance()->getProtocol(PROTOCOL_SYNCHRONIZATION)); if (protocol) // if this protocol exists, that's that we play online diff --git a/src/network/network_world.hpp b/src/network/network_world.hpp index 322753680..e5aa1a7b9 100644 --- a/src/network/network_world.hpp +++ b/src/network/network_world.hpp @@ -39,7 +39,6 @@ class NetworkWorld : public AbstractSingleton private: bool m_running; float m_race_time; - bool m_has_run; std::string m_self_kart; friend class AbstractSingleton;