Explorar o código

Removed dupe ToDeviceInfo

LJQ hai 1 ano
pai
achega
98bc2fea8b
Modificáronse 1 ficheiros con 1 adicións e 18 borrados
  1. 1 18
      Jellyfin.Server.Implementations/Devices/DeviceManager.cs

+ 1 - 18
Jellyfin.Server.Implementations/Devices/DeviceManager.cs

@@ -226,24 +226,7 @@ namespace Jellyfin.Server.Implementations.Devices
                    || !GetCapabilities(deviceId).SupportsPersistentIdentifier;
                    || !GetCapabilities(deviceId).SupportsPersistentIdentifier;
         }
         }
 
 
-        private DeviceInfo ToDeviceInfo(Device authInfo)
-        {
-            var caps = GetCapabilities(authInfo.DeviceId);
-
-            return new DeviceInfo
-            {
-                AppName = authInfo.AppName,
-                AppVersion = authInfo.AppVersion,
-                Id = authInfo.DeviceId,
-                LastUserId = authInfo.UserId,
-                LastUserName = authInfo.User.Username,
-                Name = authInfo.DeviceName,
-                DateLastActivity = authInfo.DateLastActivity,
-                IconUrl = caps.IconUrl
-            };
-        }
-
-        private DeviceInfo ToDeviceInfo(Device authInfo, DeviceOptions? options)
+        private DeviceInfo ToDeviceInfo(Device authInfo, DeviceOptions? options = null)
         {
         {
             var caps = GetCapabilities(authInfo.DeviceId);
             var caps = GetCapabilities(authInfo.DeviceId);