From d7ad1520dc2ebf86b658472da2df5c97e75e6c40 Mon Sep 17 00:00:00 2001 From: Marek Safar Date: Sat, 8 Feb 2020 00:02:23 +0100 Subject: [PATCH] Clean up more unused methods in System.Private.CoreLib (#31924) --- .../System.Private.CoreLib/src/System/Array.Mono.cs | 20 -------------------- .../System.Private.CoreLib/src/System/Buffer.Mono.cs | 2 -- 2 files changed, 22 deletions(-) diff --git a/src/mono/netcore/System.Private.CoreLib/src/System/Array.Mono.cs b/src/mono/netcore/System.Private.CoreLib/src/System/Array.Mono.cs index f311e95..c7f4cb1 100644 --- a/src/mono/netcore/System.Private.CoreLib/src/System/Array.Mono.cs +++ b/src/mono/netcore/System.Private.CoreLib/src/System/Array.Mono.cs @@ -419,26 +419,6 @@ namespace System SetValue (value, ind); } - static bool TrySZBinarySearch (Array sourceArray, int sourceIndex, int count, object? value, out int retVal) - { - retVal = default; - return false; - } - - static bool TrySZIndexOf (Array sourceArray, int sourceIndex, int count, object? value, out int retVal) - { - retVal = default; - return false; - } - - static bool TrySZLastIndexOf (Array sourceArray, int sourceIndex, int count, object? value, out int retVal) - { - retVal = default; - return false; - } - - static bool TrySZReverse (Array array, int index, int count) => false; - public int GetUpperBound (int dimension) { return GetLowerBound (dimension) + GetLength (dimension) - 1; diff --git a/src/mono/netcore/System.Private.CoreLib/src/System/Buffer.Mono.cs b/src/mono/netcore/System.Private.CoreLib/src/System/Buffer.Mono.cs index aa942cc..c6de613 100644 --- a/src/mono/netcore/System.Private.CoreLib/src/System/Buffer.Mono.cs +++ b/src/mono/netcore/System.Private.CoreLib/src/System/Buffer.Mono.cs @@ -14,8 +14,6 @@ namespace System { partial class Buffer { - static bool IsPrimitiveTypeArray (Array array) => array.IsPrimitive (); - internal static unsafe void Memcpy (byte* dest, byte* src, int len) => Memmove (dest, src, (nuint) len); [MethodImpl (MethodImplOptions.InternalCall)] -- 2.7.4