diff options
author | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2024-03-26 22:26:45 +0100 |
---|---|---|
committer | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2024-04-06 19:48:04 +0200 |
commit | e64aa4d25f3d6f350db0c6a650e1ba9ff8140d97 (patch) | |
tree | ab004d98048807747b79f357fa83284a0c06ad65 | |
parent | e5b4ef8e9522e950033cbece39a31a4a76da19c1 (diff) | |
download | redot-engine-e64aa4d25f3d6f350db0c6a650e1ba9ff8140d97.tar.gz |
[MP] Fix dead code doing unnecessary allocation
Probably a leftover from some old refactor.
-rw-r--r-- | scene/main/multiplayer_api.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/scene/main/multiplayer_api.cpp b/scene/main/multiplayer_api.cpp index 35e4302bb7..bd097ec2d0 100644 --- a/scene/main/multiplayer_api.cpp +++ b/scene/main/multiplayer_api.cpp @@ -266,10 +266,6 @@ Error MultiplayerAPI::decode_and_decompress_variants(Vector<Variant> &r_variants return OK; } - Vector<Variant> args; - Vector<const Variant *> 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."); |