From 16bc127e004665a7e81955639ce4c2006207e533 Mon Sep 17 00:00:00 2001 From: Fabio Alessandrelli Date: Tue, 26 Mar 2024 22:26:45 +0100 Subject: [PATCH] [MP] Fix dead code doing unnecessary allocation Probably a leftover from some old refactor. (cherry picked from commit e64aa4d25f3d6f350db0c6a650e1ba9ff8140d97) --- scene/main/multiplayer_api.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/scene/main/multiplayer_api.cpp b/scene/main/multiplayer_api.cpp index 35e4302bb70..bd097ec2d05 100644 --- a/scene/main/multiplayer_api.cpp +++ b/scene/main/multiplayer_api.cpp @@ -266,10 +266,6 @@ Error MultiplayerAPI::decode_and_decompress_variants(Vector &r_variants return OK; } - Vector args; - Vector argp; - args.resize(argc); - for (int i = 0; i < argc; i++) { ERR_FAIL_COND_V_MSG(r_len >= p_len, ERR_INVALID_DATA, "Invalid packet received. Size too small.");