Ver Fonte

[MP] Fix dead code doing unnecessary allocation

Probably a leftover from some old refactor.

(cherry picked from commit e64aa4d25f3d6f350db0c6a650e1ba9ff8140d97)
Fabio Alessandrelli há 1 ano atrás
pai
commit
5958c8fa22
1 ficheiros alterados com 0 adições e 4 exclusões
  1. 0 4
      scene/main/multiplayer_api.cpp

+ 0 - 4
scene/main/multiplayer_api.cpp

@@ -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.");