diff options
Diffstat (limited to 'MediaBrowser.Common/IO/FileSystemRepository.cs')
| -rw-r--r-- | MediaBrowser.Common/IO/FileSystemRepository.cs | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/MediaBrowser.Common/IO/FileSystemRepository.cs b/MediaBrowser.Common/IO/FileSystemRepository.cs index 24ad04a92..3a4987a94 100644 --- a/MediaBrowser.Common/IO/FileSystemRepository.cs +++ b/MediaBrowser.Common/IO/FileSystemRepository.cs @@ -2,7 +2,6 @@ using System; using System.Collections.Concurrent; using System.IO; -using System.Threading.Tasks; namespace MediaBrowser.Common.IO { @@ -19,11 +18,6 @@ namespace MediaBrowser.Common.IO private readonly ConcurrentDictionary<string, string> _subFolderPaths = new ConcurrentDictionary<string, string>(); /// <summary> - /// The _file locks - /// </summary> - private readonly NamedLock _fileLocks = new NamedLock(); - - /// <summary> /// Gets or sets the path. /// </summary> /// <value>The path.</value> @@ -171,24 +165,6 @@ namespace MediaBrowser.Common.IO } /// <summary> - /// Waits for lock. - /// </summary> - /// <param name="resourcePath">The resource path.</param> - public Task WaitForLockAsync(string resourcePath) - { - return _fileLocks.WaitAsync(resourcePath); - } - - /// <summary> - /// Releases the lock. - /// </summary> - /// <param name="resourcePath">The resource path.</param> - public void ReleaseLock(string resourcePath) - { - _fileLocks.Release(resourcePath); - } - - /// <summary> /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. /// </summary> public void Dispose() @@ -204,7 +180,6 @@ namespace MediaBrowser.Common.IO { if (dispose) { - _fileLocks.Dispose(); } } } |
