Remove unused cached types (#9015)

These types are not used in PowerShell code base and should be removed.

## PR Context

The dotnet 3.0.100-preview3-010406 version added overloads to `string.get_Chars` and hence we cannot resolved which overload to load. Thus, we get an type load exception.

Since we are no using this type, it is better to remove it.
This commit is contained in:
Aditya Patwardhan
2019-02-28 17:28:44 -08:00
committed by Travis Plunk
parent 4de93e8b64
commit b2a8a733de
@@ -222,9 +222,6 @@ namespace System.Management.Automation.Language
internal static readonly MethodInfo IComparable_CompareTo = internal static readonly MethodInfo IComparable_CompareTo =
typeof(IComparable).GetMethod(nameof(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 = internal static readonly MethodInfo IDisposable_Dispose =
typeof(IDisposable).GetMethod(nameof(IDisposable.Dispose)); typeof(IDisposable).GetMethod(nameof(IDisposable.Dispose));
@@ -452,8 +449,6 @@ namespace System.Management.Automation.Language
typeof(string).GetMethod(nameof(string.Equals), staticPublicFlags, null, typeof(string).GetMethod(nameof(string.Equals), staticPublicFlags, null,
CallingConventions.Standard, CallingConventions.Standard,
new Type[] { typeof(string), typeof(string), typeof(StringComparison) }, null); 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 = internal static readonly PropertyInfo String_Length =
typeof(string).GetProperty(nameof(string.Length)); typeof(string).GetProperty(nameof(string.Length));