Skip to content

Commit 542cf52

Browse files
[Microsoft.Android.Runtime] remove unused GetAssemblyLocation() method (#10003)
This method has a suppressed trimmer warning, but it is completely unused. We can remove it.
1 parent 76507e8 commit 542cf52

File tree

1 file changed

+0
-9
lines changed
  • src/Microsoft.Android.Runtime.NativeAOT/Java.Interop

1 file changed

+0
-9
lines changed

src/Microsoft.Android.Runtime.NativeAOT/Java.Interop/JreRuntime.cs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -70,15 +70,6 @@ static NativeAotRuntimeOptions CreateJreVM (NativeAotRuntimeOptions builder)
7070
throw new NotImplementedException ();
7171
}
7272

73-
[UnconditionalSuppressMessage ("Trimming", "IL3000", Justification = "We check for a null Assembly.Location value!")]
74-
internal static string? GetAssemblyLocation (Assembly assembly)
75-
{
76-
var location = assembly.Location;
77-
if (!string.IsNullOrEmpty (location))
78-
return location;
79-
return null;
80-
}
81-
8273
internal protected JreRuntime (NativeAotRuntimeOptions builder)
8374
: base (CreateJreVM (builder))
8475
{

0 commit comments

Comments
 (0)