The Free Software Media System - Server Backend & API
Remove dead code
Bond_009157a86d0f139
diff --git a/Emby.Server.Implementations/Services/ServiceHandler.cs b/Emby.Server.Implementations/Services/ServiceHandler.csindex 243d2cca27..621be4fcb5 100644--- a/Emby.Server.Implementations/Services/ServiceHandler.cs+++ b/Emby.Server.Implementations/Services/ServiceHandler.cs@@ -11,8 +11,6 @@ namespace Emby.Server.Implementations.Services{public class ServiceHandler{- private readonly ServiceController _serviceController;-public RestPath RestPath { get; }public string ResponseContentType { get; }@@ -28,22 +26,12 @@ namespace Emby.Server.Implementations.Servicesif (!string.IsNullOrEmpty(contentType) && httpReq.ContentLength > 0){var deserializer = RequestHelper.GetRequestReader(host, contentType);- if (deserializer != null)- {- return deserializer(requestType, httpReq.InputStream);- }+ return deserializer?.Invoke(requestType, httpReq.InputStream);}return Task.FromResult(host.CreateInstance(requestType));}- public RestPath FindMatchingRestPath(string httpMethod, string pathInfo, out string contentType)- {- pathInfo = GetSanitizedPathInfo(pathInfo, out contentType);-- return _serviceController.GetRestPathForRequest(httpMethod, pathInfo);- }-public static string GetSanitizedPathInfo(string pathInfo, out string contentType){contentType = null;