Removed unused parameters from Program.getImageEncoder

This commit is contained in:
William Taylor 2019-01-20 21:54:07 +00:00
parent e62198650e
commit 190bc46c1b

View File

@ -103,7 +103,7 @@ namespace Jellyfin.Server
{ {
appHost.Init(); appHost.Init();
appHost.ImageProcessor.ImageEncoder = getImageEncoder(_loggerFactory, fileSystem, options, () => appHost.HttpClient, appPaths, environmentInfo, appHost.LocalizationManager); appHost.ImageProcessor.ImageEncoder = getImageEncoder(fileSystem, () => appHost.HttpClient, appPaths, appHost.LocalizationManager);
_logger.LogInformation("Running startup tasks"); _logger.LogInformation("Running startup tasks");
@ -257,17 +257,14 @@ namespace Jellyfin.Server
} }
public static IImageEncoder getImageEncoder( public static IImageEncoder getImageEncoder(
ILoggerFactory loggerFactory,
IFileSystem fileSystem, IFileSystem fileSystem,
StartupOptions startupOptions,
Func<IHttpClient> httpClient, Func<IHttpClient> httpClient,
IApplicationPaths appPaths, IApplicationPaths appPaths,
IEnvironmentInfo environment,
ILocalizationManager localizationManager) ILocalizationManager localizationManager)
{ {
try try
{ {
return new SkiaEncoder(loggerFactory, appPaths, httpClient, fileSystem, localizationManager); return new SkiaEncoder(_loggerFactory, appPaths, httpClient, fileSystem, localizationManager);
} }
catch (Exception ex) catch (Exception ex)
{ {