From f828bb02896a47656f796abd2e0ffd4f93da8f86 Mon Sep 17 00:00:00 2001 From: sta Date: Sun, 24 Dec 2017 03:40:49 +0900 Subject: [PATCH] [Modify] Remove it --- websocket-sharp/Ext.cs | 33 --------------------------------- 1 file changed, 33 deletions(-) diff --git a/websocket-sharp/Ext.cs b/websocket-sharp/Ext.cs index 9eadcefd..589410ad 100644 --- a/websocket-sharp/Ext.cs +++ b/websocket-sharp/Ext.cs @@ -1118,39 +1118,6 @@ namespace WebSocketSharp return collection != null && collection.Count > 0 ? collection[name] != null : false; } - /// - /// Determines whether the specified contains the entry with - /// the specified both and . - /// - /// - /// true if contains the entry with both - /// and ; otherwise, false. - /// - /// - /// A to test. - /// - /// - /// A that represents the key of the entry to find. - /// - /// - /// A that represents the value of the entry to find. - /// - public static bool Contains (this NameValueCollection collection, string name, string value) - { - if (collection == null || collection.Count == 0) - return false; - - var vals = collection[name]; - if (vals == null) - return false; - - foreach (var val in vals.Split (',')) - if (val.Trim ().Equals (value, StringComparison.OrdinalIgnoreCase)) - return true; - - return false; - } - /// /// Emits the specified delegate if it isn't . ///