From 24329b1ebe4ce44449b43bfc5dca459d8d88902e Mon Sep 17 00:00:00 2001 From: Paul Pacheco Date: Fri, 10 Aug 2018 07:42:31 -0500 Subject: [PATCH] Remove unused variable --- Unity-Technologies-networking/Weaver/UNetBehaviourProcessor.cs | 2 -- 1 file changed, 2 deletions(-) diff --git a/Unity-Technologies-networking/Weaver/UNetBehaviourProcessor.cs b/Unity-Technologies-networking/Weaver/UNetBehaviourProcessor.cs index dee05dd75..69c8898a8 100644 --- a/Unity-Technologies-networking/Weaver/UNetBehaviourProcessor.cs +++ b/Unity-Technologies-networking/Weaver/UNetBehaviourProcessor.cs @@ -512,7 +512,6 @@ void GenerateSerialization() serialize.Body.Variables.Add(dirtyLocal); // call base class - bool baseClassSerialize = false; if (m_td.BaseType.FullName != Weaver.NetworkBehaviourType.FullName) { MethodReference baseSerialize = Weaver.ResolveMethod(m_td.BaseType, "OnSerialize"); @@ -523,7 +522,6 @@ void GenerateSerialization() serWorker.Append(serWorker.Create(OpCodes.Ldarg_2)); // forceAll serWorker.Append(serWorker.Create(OpCodes.Call, baseSerialize)); serWorker.Append(serWorker.Create(OpCodes.Stloc_0)); // set dirtyLocal to result of base.OnSerialize() - baseClassSerialize = true; } }