소스 검색

Remove redundant GetDefaultUserAgent

Andrew Rabert 6 년 전
부모
커밋
f229c641a1
1개의 변경된 파일1개의 추가작업 그리고 6개의 파일을 삭제
  1. 1 6
      Emby.Server.Implementations/ApplicationHost.cs

+ 1 - 6
Emby.Server.Implementations/ApplicationHost.cs

@@ -752,7 +752,7 @@ namespace Emby.Server.Implementations
 
         protected virtual IHttpClient CreateHttpClient()
         {
-            return new HttpClientManager.HttpClientManager(ApplicationPaths, LoggerFactory.CreateLogger("HttpClient"), FileSystemManager, GetDefaultUserAgent);
+            return new HttpClientManager.HttpClientManager(ApplicationPaths, LoggerFactory.CreateLogger("HttpClient"), FileSystemManager, () => ApplicationUserAgent);
         }
 
         public static IStreamHelper StreamHelper { get; set; }
@@ -1010,11 +1010,6 @@ namespace Emby.Server.Implementations
             }
         }
 
-        protected string GetDefaultUserAgent()
-        {
-            return ApplicationUserAgent;
-        }
-
         protected virtual bool SupportsDualModeSockets => true;
 
         private X509Certificate GetCertificate(CertificateInfo info)