From bd6b90359c654f4c75964755e476a8bfd90114ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Blot?= Date: Wed, 30 Aug 2017 08:09:41 +0200 Subject: Remove DSTACK support (#6346) Debugstacks is not useful, we don't really use it, the DebugStack is not pertinent, gdb and lldb are better if we really want to debug. --- src/client.cpp | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'src/client.cpp') diff --git a/src/client.cpp b/src/client.cpp index 6fd007181..09ac5196d 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -252,8 +252,6 @@ Client::~Client() void Client::connect(Address address, bool is_local_server) { - DSTACK(FUNCTION_NAME); - initLocalMapSaving(address, m_address_name, is_local_server); m_con->SetTimeoutMs(0); @@ -262,8 +260,6 @@ void Client::connect(Address address, bool is_local_server) void Client::step(float dtime) { - DSTACK(FUNCTION_NAME); - // Limit a bit if(dtime > 2.0) dtime = 2.0; @@ -773,7 +769,6 @@ void Client::initLocalMapSaving(const Address &address, void Client::ReceiveAll() { - DSTACK(FUNCTION_NAME); u64 start_ms = porting::getTimeMs(); for(;;) { @@ -799,7 +794,6 @@ void Client::ReceiveAll() void Client::Receive() { - DSTACK(FUNCTION_NAME); NetworkPacket pkt; m_con->Receive(&pkt); ProcessData(&pkt); @@ -816,8 +810,6 @@ inline void Client::handleCommand(NetworkPacket* pkt) */ void Client::ProcessData(NetworkPacket *pkt) { - DSTACK(FUNCTION_NAME); - ToClientCommand command = (ToClientCommand) pkt->getCommand(); u32 sender_peer_id = pkt->getPeerId(); @@ -1235,8 +1227,6 @@ void Client::sendChangePassword(const std::string &oldpassword, void Client::sendDamage(u8 damage) { - DSTACK(FUNCTION_NAME); - NetworkPacket pkt(TOSERVER_DAMAGE, sizeof(u8)); pkt << damage; Send(&pkt); @@ -1244,8 +1234,6 @@ void Client::sendDamage(u8 damage) void Client::sendBreath(u16 breath) { - DSTACK(FUNCTION_NAME); - // Protocol v29 make this obsolete if (m_proto_ver >= 29) return; @@ -1257,16 +1245,12 @@ void Client::sendBreath(u16 breath) void Client::sendRespawn() { - DSTACK(FUNCTION_NAME); - NetworkPacket pkt(TOSERVER_RESPAWN, 0); Send(&pkt); } void Client::sendReady() { - DSTACK(FUNCTION_NAME); - NetworkPacket pkt(TOSERVER_CLIENT_READY, 1 + 1 + 1 + 1 + 2 + sizeof(char) * strlen(g_version_hash)); -- cgit v1.2.3