Selaa lähdekoodia

Remove obsolete GetMBId

Bond_009 6 vuotta sitten
vanhempi
sitoutus
3a65fb1da2

+ 2 - 2
Emby.Server.Implementations/Channels/ChannelManager.cs

@@ -901,8 +901,8 @@ namespace Emby.Server.Implementations.Channels
         private T GetItemById<T>(string idString, string channelName, out bool isNew)
             where T : BaseItem, new()
         {
-            var id = GetIdToHash(idString, channelName).GetMBId(typeof(T));
-
+            var id = _libraryManager.GetNewItemId(GetIdToHash(idString, channelName), typeof(T));
+ 
             T item = null;
 
             try

+ 0 - 20
MediaBrowser.Common/Extensions/BaseExtensions.cs

@@ -34,25 +34,5 @@ namespace MediaBrowser.Common.Extensions
         {
             return CryptographyProvider.GetMD5(str);
         }
-
-        /// <summary>
-        /// Gets the MB id.
-        /// </summary>
-        /// <param name="str">The STR.</param>
-        /// <param name="type">The type.</param>
-        /// <returns>Guid.</returns>
-        /// <exception cref="System.ArgumentNullException">type</exception>
-        [Obsolete("Use LibraryManager.GetNewItemId")]
-        public static Guid GetMBId(this string str, Type type)
-        {
-            if (type == null)
-            {
-                throw new ArgumentNullException("type");
-            }
-
-            var key = type.FullName + str.ToLower();
-
-            return key.GetMD5();
-        }
     }
 }