diff --git a/src/System.Management.Automation/engine/parser/Compiler.cs b/src/System.Management.Automation/engine/parser/Compiler.cs index 2b641bf9b59..18f4051c374 100644 --- a/src/System.Management.Automation/engine/parser/Compiler.cs +++ b/src/System.Management.Automation/engine/parser/Compiler.cs @@ -222,9 +222,6 @@ internal static class CachedReflectionInfo internal static readonly MethodInfo IComparable_CompareTo = typeof(IComparable).GetMethod(nameof(IComparable.CompareTo)); - internal static readonly MethodInfo IDictionary_set_Item = - typeof(IDictionary).GetMethod("set_Item"); - internal static readonly MethodInfo IDisposable_Dispose = typeof(IDisposable).GetMethod(nameof(IDisposable.Dispose)); @@ -452,8 +449,6 @@ internal static class CachedReflectionInfo typeof(string).GetMethod(nameof(string.Equals), staticPublicFlags, null, CallingConventions.Standard, new Type[] { typeof(string), typeof(string), typeof(StringComparison) }, null); - internal static readonly MethodInfo String_get_Chars = - typeof(string).GetMethod("get_Chars"); internal static readonly PropertyInfo String_Length = typeof(string).GetProperty(nameof(string.Length));