mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
Weaver.ReadAllFields: remove unused field
This commit is contained in:
parent
bd34f100fc
commit
7e509eae4a
@ -303,7 +303,6 @@ static void CreateNew(TypeReference variable, ILProcessor worker, TypeDefinition
|
||||
|
||||
static void ReadAllFields(TypeReference variable, ILProcessor worker)
|
||||
{
|
||||
uint fields = 0;
|
||||
foreach (FieldDefinition field in variable.FindAllPublicFields())
|
||||
{
|
||||
// mismatched ldloca/ldloc for struct/class combinations is invalid IL, which causes crash at runtime
|
||||
@ -322,7 +321,6 @@ static void ReadAllFields(TypeReference variable, ILProcessor worker)
|
||||
FieldReference fieldRef = Weaver.CurrentAssembly.MainModule.ImportReference(field);
|
||||
|
||||
worker.Append(worker.Create(OpCodes.Stfld, fieldRef));
|
||||
fields++;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user