diff --git a/Assets/Mirror/Editor/Weaver/Writers.cs b/Assets/Mirror/Editor/Weaver/Writers.cs index 061288cf3..51d514e53 100644 --- a/Assets/Mirror/Editor/Weaver/Writers.cs +++ b/Assets/Mirror/Editor/Weaver/Writers.cs @@ -250,7 +250,6 @@ void WriteNullCheck(ILProcessor worker, ref bool WeavingFailed) // Find all fields in type and write them bool WriteAllFields(TypeReference variable, ILProcessor worker, ref bool WeavingFailed) { - uint fields = 0; foreach (FieldDefinition field in variable.FindAllPublicFields()) { MethodReference writeFunc = GetWriteFunc(field.FieldType, ref WeavingFailed); @@ -259,7 +258,6 @@ bool WriteAllFields(TypeReference variable, ILProcessor worker, ref bool Weaving FieldReference fieldRef = assembly.MainModule.ImportReference(field); - fields++; worker.Emit(OpCodes.Ldarg_0); worker.Emit(OpCodes.Ldarg_1); worker.Emit(OpCodes.Ldfld, fieldRef);