From df132b68937e0a4c4671f609734ba17b7f779a29 Mon Sep 17 00:00:00 2001 From: rodolphito Date: Thu, 4 Apr 2019 00:46:19 -0700 Subject: [PATCH] Inlined an internal method call. (#716) --- Assets/Mirror/Runtime/NetworkClient.cs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/Assets/Mirror/Runtime/NetworkClient.cs b/Assets/Mirror/Runtime/NetworkClient.cs index 8da478150..4732ea8f6 100644 --- a/Assets/Mirror/Runtime/NetworkClient.cs +++ b/Assets/Mirror/Runtime/NetworkClient.cs @@ -43,11 +43,6 @@ public class NetworkClient // to avoid race conditions. keep packets in Queue until LateUpdate. internal static Queue localClientPacketQueue = new Queue(); - internal static void SetHandlers(NetworkConnection conn) - { - conn.SetHandlers(handlers); - } - // connect remote public static void Connect(string address) { @@ -77,7 +72,7 @@ internal static void ConnectLocalServer() // create local connection to server connection = new ULocalConnectionToServer(); - SetHandlers(connection); + connection.SetHandlers(handlers); // create server connection to local client ULocalConnectionToClient connectionToClient = new ULocalConnectionToClient();