Remove overrides field
This commit is contained in:
parent
4a7b4f4111
commit
3cde99b2e7
|
@ -497,13 +497,7 @@ namespace de4dot.code.renamer.asmmodules {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Dictionary<MethodDefKey, bool> overrideMethods;
|
|
||||||
void initializeInterfaceMethods(MethodNameGroups groups) {
|
void initializeInterfaceMethods(MethodNameGroups groups) {
|
||||||
if (baseType != null)
|
|
||||||
overrideMethods = new Dictionary<MethodDefKey, bool>(baseType.typeDef.overrideMethods);
|
|
||||||
else
|
|
||||||
overrideMethods = new Dictionary<MethodDefKey, bool>();
|
|
||||||
|
|
||||||
initializeAllInterfaces();
|
initializeAllInterfaces();
|
||||||
|
|
||||||
if (TypeDefinition.IsInterface)
|
if (TypeDefinition.IsInterface)
|
||||||
|
@ -611,9 +605,7 @@ namespace de4dot.code.renamer.asmmodules {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
var oldMethod = interfaceMethodInfos.addMethod(overrideMethod.DeclaringType, ifaceMethod, classMethod);
|
interfaceMethodInfos.addMethod(overrideMethod.DeclaringType, ifaceMethod, classMethod);
|
||||||
if (oldMethod != classMethod)
|
|
||||||
overrideMethods[new MethodDefKey(classMethod)] = true;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -644,7 +636,7 @@ namespace de4dot.code.renamer.asmmodules {
|
||||||
foreach (var pair in info.IfaceMethodToClassMethod) {
|
foreach (var pair in info.IfaceMethodToClassMethod) {
|
||||||
if (pair.Value == null)
|
if (pair.Value == null)
|
||||||
continue;
|
continue;
|
||||||
if (overrideMethods.ContainsKey(new MethodDefKey(pair.Value)))
|
if (pair.Key.methodDef.MethodDefinition.Name != pair.Value.MethodDefinition.Name)
|
||||||
continue;
|
continue;
|
||||||
groups.same(pair.Key.methodDef, pair.Value);
|
groups.same(pair.Key.methodDef, pair.Value);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user