Remove more unused stuff

This commit is contained in:
Bond-009
2019-03-08 20:32:14 +01:00
committed by DrPandemic
parent 067200be83
commit 0a5550b13d
6 changed files with 8 additions and 60 deletions

View File

@@ -352,11 +352,6 @@ namespace Emby.Server.Implementations.HttpClientManager
}
}
if (options.ResourcePool != null)
{
await options.ResourcePool.WaitAsync(options.CancellationToken).ConfigureAwait(false);
}
if (options.LogRequest)
{
_logger.LogDebug("HttpClientManager {0}: {1}", httpMethod.ToString(), options.Url);
@@ -397,10 +392,6 @@ namespace Emby.Server.Implementations.HttpClientManager
{
throw GetCancellationException(options, options.CancellationToken, ex);
}
finally
{
options.ResourcePool?.Release();
}
}
private HttpResponseInfo GetResponseInfo(HttpResponseMessage httpResponse, Stream content, long? contentLength, IDisposable disposable)
@@ -483,11 +474,6 @@ namespace Emby.Server.Implementations.HttpClientManager
var httpWebRequest = GetRequestMessage(options, HttpMethod.Get);
if (options.ResourcePool != null)
{
await options.ResourcePool.WaitAsync(options.CancellationToken).ConfigureAwait(false);
}
options.Progress.Report(0);
if (options.LogRequest)
@@ -528,10 +514,6 @@ namespace Emby.Server.Implementations.HttpClientManager
throw GetException(ex, options);
}
finally
{
options.ResourcePool?.Release();
}
}
private Exception GetException(Exception ex, HttpRequestOptions options)