Skip to content

Commit 6013b89

Browse files
ds5678gompoc
authored andcommitted
Remove IsManagedWithBody extension method
1 parent c15bf9a commit 6013b89

File tree

4 files changed

+3
-8
lines changed

4 files changed

+3
-8
lines changed

Cpp2IL.Core/OutputFormats/AsmResolverDllOutputFormatEmpty.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using AsmResolver.DotNet;
2+
using AssetRipper.CIL;
23
using Cpp2IL.Core.Model.Contexts;
3-
using Cpp2IL.Core.Utils.AsmResolver;
44

55
namespace Cpp2IL.Core.OutputFormats;
66

Cpp2IL.Core/OutputFormats/AsmResolverDllOutputFormatIlRecovery.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
using AsmResolver.DotNet;
22
using AsmResolver.PE.DotNet.Cil;
3+
using AssetRipper.CIL;
34
using Cpp2IL.Core.Model.Contexts;
4-
using Cpp2IL.Core.Utils.AsmResolver;
55

66
namespace Cpp2IL.Core.OutputFormats;
77

Cpp2IL.Core/OutputFormats/AsmResolverDllOutputFormatThrowNull.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
using AsmResolver.DotNet;
22
using AsmResolver.PE.DotNet.Cil;
3+
using AssetRipper.CIL;
34
using Cpp2IL.Core.Model.Contexts;
4-
using Cpp2IL.Core.Utils.AsmResolver;
55

66
namespace Cpp2IL.Core.OutputFormats;
77

Cpp2IL.Core/Utils/AsmResolver/AsmResolverUtils.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
using System;
22
using System.Collections.Concurrent;
3-
using System.Collections.Generic;
43
using System.Diagnostics;
54
using System.Globalization;
65
using System.Linq;
@@ -328,10 +327,6 @@ public static ITypeDefOrRef ImportTypeIfNeeded(this ReferenceImporter importer,
328327
return importer.ImportType(type);
329328
}
330329

331-
public static bool IsManagedMethodWithBody(this MethodDefinition managedMethod) =>
332-
managedMethod.Managed && !managedMethod.IsAbstract && !managedMethod.IsPInvokeImpl
333-
&& !managedMethod.IsInternalCall && !managedMethod.IsNative && !managedMethod.IsRuntime;
334-
335330
internal static ArrayTypeSignature MakeArrayTypeWithLowerBounds(this TypeSignature elementType, int rank)
336331
{
337332
var result = new ArrayTypeSignature(elementType, rank);

0 commit comments

Comments
 (0)