diff options
| author | Andrew Rabert <6550543+nvllsvm@users.noreply.github.com> | 2018-12-19 21:39:58 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-12-19 21:39:58 -0500 |
| commit | 0fa52f417781b5e418f6027c031246936395d406 (patch) | |
| tree | a206d16459f842e594c15ac1fdcd8eff37460108 /SocketHttpListener/Net | |
| parent | 2df4e5a564d05b8e9755a080a232f6f0ee0095f0 (diff) | |
| parent | 1a2153c3997f4624512182c747aec4ca0da1f5ed (diff) | |
Merge pull request #184 from Bond-009/warnings
[WIP] Remove warnings
Diffstat (limited to 'SocketHttpListener/Net')
| -rw-r--r-- | SocketHttpListener/Net/HttpListenerContext.cs | 6 | ||||
| -rw-r--r-- | SocketHttpListener/Net/HttpListenerRequestUriBuilder.cs | 6 |
2 files changed, 3 insertions, 9 deletions
diff --git a/SocketHttpListener/Net/HttpListenerContext.cs b/SocketHttpListener/Net/HttpListenerContext.cs index f4679568a..b90f07567 100644 --- a/SocketHttpListener/Net/HttpListenerContext.cs +++ b/SocketHttpListener/Net/HttpListenerContext.cs @@ -1,19 +1,13 @@ using System; using System.Net; using System.Security.Principal; -using MediaBrowser.Model.Cryptography; -using MediaBrowser.Model.IO; -using MediaBrowser.Model.Logging; -using MediaBrowser.Model.Text; using SocketHttpListener.Net.WebSockets; -using SocketHttpListener.Primitives; using System.Threading.Tasks; namespace SocketHttpListener.Net { public sealed unsafe partial class HttpListenerContext { - internal HttpListener _listener; private HttpListenerResponse _response; private IPrincipal _user; diff --git a/SocketHttpListener/Net/HttpListenerRequestUriBuilder.cs b/SocketHttpListener/Net/HttpListenerRequestUriBuilder.cs index e61bde32e..34b5eaf74 100644 --- a/SocketHttpListener/Net/HttpListenerRequestUriBuilder.cs +++ b/SocketHttpListener/Net/HttpListenerRequestUriBuilder.cs @@ -253,7 +253,7 @@ namespace SocketHttpListener.Net //if (NetEventSource.IsEnabled) // NetEventSource.Error(this, SR.Format(SR.net_log_listener_cant_convert_percent_value, codePoint)); } - catch (EncoderFallbackException e) + catch (EncoderFallbackException) { // If utf8Encoding.GetBytes() fails //if (NetEventSource.IsEnabled) NetEventSource.Error(this, SR.Format(SR.net_log_listener_cant_convert_to_utf8, unicodeString, e.Message)); @@ -303,11 +303,11 @@ namespace SocketHttpListener.Net return true; } - catch (DecoderFallbackException e) + catch (DecoderFallbackException) { //if (NetEventSource.IsEnabled) NetEventSource.Error(this, SR.Format(SR.net_log_listener_cant_convert_bytes, GetOctetsAsString(_rawOctets), e.Message)); } - catch (EncoderFallbackException e) + catch (EncoderFallbackException) { // If utf8Encoding.GetBytes() fails //if (NetEventSource.IsEnabled) NetEventSource.Error(this, SR.Format(SR.net_log_listener_cant_convert_to_utf8, decodedString, e.Message)); |
