mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
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.
This commit is contained in:
parent
43f9e948a1
commit
bd6b90359c
22 changed files with 1 additions and 327 deletions
|
@ -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));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue