Removed leftover counter

This commit is contained in:
MrGadget 2022-01-17 12:23:21 -05:00
parent 00dec7e498
commit f4397e1ef7

View File

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