mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-17 06:23:03 +03:00
Remove more unused stuff
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user