[MP] Fix dead code doing unnecessary allocation

Probably a leftover from some old refactor.

(cherry picked from commit e64aa4d25f)
This commit is contained in:
Fabio Alessandrelli 2024-03-26 22:26:45 +01:00 committed by Rémi Verschelde
parent 83e985b159
commit 16bc127e00
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 0 additions and 4 deletions

View File

@ -266,10 +266,6 @@ Error MultiplayerAPI::decode_and_decompress_variants(Vector<Variant> &r_variants
return OK; return OK;
} }
Vector<Variant> args;
Vector<const Variant *> argp;
args.resize(argc);
for (int i = 0; i < argc; i++) { 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."); ERR_FAIL_COND_V_MSG(r_len >= p_len, ERR_INVALID_DATA, "Invalid packet received. Size too small.");