aboutsummaryrefslogtreecommitdiff
path: root/SocketHttpListener/HttpBase.cs
diff options
context:
space:
mode:
authorhawken <hawken@thehawken.org>2019-01-24 18:56:43 +0100
committerBond-009 <bond.009@outlook.com>2019-01-24 18:56:43 +0100
commit3701ce40375fc13987174f843b61b2d757d4a11f (patch)
treee00bf09e648844ad4b8d6c8c5823995ae8a64775 /SocketHttpListener/HttpBase.cs
parentb2ffad9ce946544d87e285fd200c089b47bfb323 (diff)
Eliminate some compile warnings (#600)
* Remove some unused variables * remove duplicate "using .." by sorting and deduping the list * Remove things that already exist in the parent class (in one case I moved some documentation to the parent) * EntityBodyData and and NextSearch were never set (only read), removed * _timeout was never read, subsequently _timer became unused. part of a TODO timeout functionality that was not implemented yet
Diffstat (limited to 'SocketHttpListener/HttpBase.cs')
-rw-r--r--SocketHttpListener/HttpBase.cs18
1 files changed, 0 insertions, 18 deletions
diff --git a/SocketHttpListener/HttpBase.cs b/SocketHttpListener/HttpBase.cs
index fea91d84b..c386b9374 100644
--- a/SocketHttpListener/HttpBase.cs
+++ b/SocketHttpListener/HttpBase.cs
@@ -13,12 +13,6 @@ namespace SocketHttpListener
#endregion
- #region Internal Fields
-
- internal byte[] EntityBodyData;
-
- #endregion
-
#region Protected Fields
protected const string CrLf = "\r\n";
@@ -37,18 +31,6 @@ namespace SocketHttpListener
#region Public Properties
- public string EntityBody
- {
- get
- {
- var data = EntityBodyData;
-
- return data != null && data.Length > 0
- ? getEncoding(_headers["Content-Type"]).GetString(data, 0, data.Length)
- : string.Empty;
- }
- }
-
public QueryParamCollection Headers => _headers;
public Version ProtocolVersion => _version;