Browse Source

Removed redundant parameter.

pull/200/head
Ed Harvey 15 years ago
parent
commit
a683ba51ff
  1. 4
      ILSpy/TreeNodes/Analyzer/Helpers.cs

4
ILSpy/TreeNodes/Analyzer/Helpers.cs

@ -67,11 +67,11 @@ namespace ICSharpCode.ILSpy.TreeNodes.Analyzer
return FindMethodUsageInType(method.DeclaringType, method) ?? method; return FindMethodUsageInType(method.DeclaringType, method) ?? method;
} }
var typeUsage = GetOriginalCodeLocation(method.DeclaringType, method); var typeUsage = GetOriginalCodeLocation(method.DeclaringType);
return typeUsage ?? method; return typeUsage ?? method;
} }
public static MethodDefinition GetOriginalCodeLocation(TypeDefinition type, MethodDefinition method) public static MethodDefinition GetOriginalCodeLocation(TypeDefinition type)
{ {
if (type != null && type.DeclaringType != null && type.IsCompilerGenerated()) { if (type != null && type.DeclaringType != null && type.IsCompilerGenerated()) {
MethodDefinition constructor = GetTypeConstructor(type); MethodDefinition constructor = GetTypeConstructor(type);

Loading…
Cancel
Save