From 39b40c4e61acda7ef82b6c19b9b3d35253434ba3 Mon Sep 17 00:00:00 2001 From: sta Date: Sat, 27 Apr 2019 15:57:32 +0900 Subject: [PATCH] [Modify] Remove it --- websocket-sharp/Net/CookieCollection.cs | 58 ------------------------- 1 file changed, 58 deletions(-) diff --git a/websocket-sharp/Net/CookieCollection.cs b/websocket-sharp/Net/CookieCollection.cs index ede7cfd6..8bfdf0e0 100644 --- a/websocket-sharp/Net/CookieCollection.cs +++ b/websocket-sharp/Net/CookieCollection.cs @@ -685,64 +685,6 @@ namespace WebSocketSharp.Net return search (cookie) > -1; } - /// - /// Copies the elements of the collection to the specified array, - /// starting at the specified index. - /// - /// - /// An that specifies the destination of - /// the elements copied from the collection. - /// - /// - /// An that specifies the zero-based index in - /// the array at which copying starts. - /// - /// - /// is . - /// - /// - /// is less than zero. - /// - /// - /// - /// is multidimensional. - /// - /// - /// -or- - /// - /// - /// The space from to the end of - /// is not enough to copy to. - /// - /// - /// - /// The element type of cannot be assigned. - /// - public void CopyTo (Array array, int index) - { - if (array == null) - throw new ArgumentNullException ("array"); - - if (index < 0) - throw new ArgumentOutOfRangeException ("index", "Less than zero."); - - if (array.Rank > 1) - throw new ArgumentException ("Multidimensional.", "array"); - - if (array.Length - index < _list.Count) { - var msg = "The available space of the array is not enough to copy to."; - throw new ArgumentException (msg); - } - - var elmType = array.GetType ().GetElementType (); - if (!elmType.IsAssignableFrom (typeof (Cookie))) { - var msg = "The element type of the array cannot be assigned."; - throw new InvalidCastException (msg); - } - - ((IList) _list).CopyTo (array, index); - } - /// /// Copies the elements of the collection to the specified array, /// starting at the specified index.