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 . ///