From 821a3d29a228feaa3ac4d36c58ee478a405e0481 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Wed, 5 Feb 2014 23:39:16 -0500 Subject: converted movie providers to new system --- MediaBrowser.Controller/Library/ItemResolveArgs.cs | 91 ---------------------- 1 file changed, 91 deletions(-) (limited to 'MediaBrowser.Controller/Library') diff --git a/MediaBrowser.Controller/Library/ItemResolveArgs.cs b/MediaBrowser.Controller/Library/ItemResolveArgs.cs index c45c14239..5d6d850f0 100644 --- a/MediaBrowser.Controller/Library/ItemResolveArgs.cs +++ b/MediaBrowser.Controller/Library/ItemResolveArgs.cs @@ -195,77 +195,6 @@ namespace MediaBrowser.Controller.Library } } - /// - /// Store these to reduce disk access in Resolvers - /// - /// The metadata file dictionary. - private Dictionary MetadataFileDictionary { get; set; } - - /// - /// Gets the metadata files. - /// - /// The metadata files. - public IEnumerable MetadataFiles - { - get - { - if (MetadataFileDictionary != null) - { - return MetadataFileDictionary.Values; - } - - return new FileSystemInfo[] { }; - } - } - - /// - /// Adds the metadata file. - /// - /// The path. - /// - public void AddMetadataFile(string path) - { - var file = new FileInfo(path); - - if (!file.Exists) - { - throw new FileNotFoundException(path); - } - - AddMetadataFile(file); - } - - /// - /// Adds the metadata file. - /// - /// The file info. - public void AddMetadataFile(FileSystemInfo fileInfo) - { - AddMetadataFiles(new[] { fileInfo }); - } - - /// - /// Adds the metadata files. - /// - /// The files. - /// - public void AddMetadataFiles(IEnumerable files) - { - if (files == null) - { - throw new ArgumentNullException(); - } - - if (MetadataFileDictionary == null) - { - MetadataFileDictionary = new Dictionary(StringComparer.OrdinalIgnoreCase); - } - foreach (var file in files) - { - MetadataFileDictionary[file.Name] = file; - } - } - /// /// Gets the name of the file system entry by. /// @@ -320,16 +249,6 @@ namespace MediaBrowser.Controller.Library { throw new ArgumentNullException(); } - - if (MetadataFileDictionary != null) - { - FileSystemInfo entry; - - if (MetadataFileDictionary.TryGetValue(System.IO.Path.GetFileName(path), out entry)) - { - return entry; - } - } return GetFileSystemEntryByPath(path); } @@ -346,16 +265,6 @@ namespace MediaBrowser.Controller.Library { throw new ArgumentNullException(); } - - if (MetadataFileDictionary != null) - { - FileSystemInfo entry; - - if (MetadataFileDictionary.TryGetValue(name, out entry)) - { - return entry; - } - } return GetFileSystemEntryByName(name); } -- cgit v1.2.3