Clean up more unused methods in System.Private.CoreLib (#31924)
authorMarek Safar <marek.safar@gmail.com>
Fri, 7 Feb 2020 23:02:23 +0000 (00:02 +0100)
committerGitHub <noreply@github.com>
Fri, 7 Feb 2020 23:02:23 +0000 (15:02 -0800)
src/mono/netcore/System.Private.CoreLib/src/System/Array.Mono.cs
src/mono/netcore/System.Private.CoreLib/src/System/Buffer.Mono.cs

index f311e95..c7f4cb1 100644 (file)
@@ -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;
index aa942cc..c6de613 100644 (file)
@@ -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)]