Remove unused variable

This commit is contained in:
Paul Pacheco 2018-08-10 07:42:31 -05:00
parent 97fe2331f1
commit 24329b1ebe

View File

@ -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;
}
}