From 93993790f11873b2ee29b68b19c262879fffa42d Mon Sep 17 00:00:00 2001 From: sta Date: Wed, 22 Oct 2014 11:38:31 +0900 Subject: [PATCH] Refactored HttpListenerPrefixCollection.cs --- .../Net/HttpListenerPrefixCollection.cs | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/websocket-sharp/Net/HttpListenerPrefixCollection.cs b/websocket-sharp/Net/HttpListenerPrefixCollection.cs index 7d6c457b..1fbb11df 100644 --- a/websocket-sharp/Net/HttpListenerPrefixCollection.cs +++ b/websocket-sharp/Net/HttpListenerPrefixCollection.cs @@ -50,8 +50,7 @@ namespace WebSocketSharp.Net /// The responds to the request which has a requested URI that /// the prefixes most closely match. /// - public class HttpListenerPrefixCollection - : ICollection, IEnumerable, IEnumerable + public class HttpListenerPrefixCollection : ICollection, IEnumerable, IEnumerable { #region Private Fields @@ -60,21 +59,12 @@ namespace WebSocketSharp.Net #endregion - #region Private Constructors - - private HttpListenerPrefixCollection () - { - _prefixes = new List (); - } - - #endregion - #region Internal Constructors internal HttpListenerPrefixCollection (HttpListener listener) - : this () { _listener = listener; + _prefixes = new List (); } #endregion