From fa884f3fead68522b45276661528ba39d42dcad1 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Tue, 2 Apr 2013 22:59:27 -0400 Subject: #62 - File locking problem in cache --- MediaBrowser.Common/IO/FileSystemRepository.cs | 25 ------------------------- 1 file changed, 25 deletions(-) (limited to 'MediaBrowser.Common/IO/FileSystemRepository.cs') 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 { @@ -18,11 +17,6 @@ namespace MediaBrowser.Common.IO /// private readonly ConcurrentDictionary _subFolderPaths = new ConcurrentDictionary(); - /// - /// The _file locks - /// - private readonly NamedLock _fileLocks = new NamedLock(); - /// /// Gets or sets the path. /// @@ -170,24 +164,6 @@ namespace MediaBrowser.Common.IO return File.Exists(path); } - /// - /// Waits for lock. - /// - /// The resource path. - public Task WaitForLockAsync(string resourcePath) - { - return _fileLocks.WaitAsync(resourcePath); - } - - /// - /// Releases the lock. - /// - /// The resource path. - public void ReleaseLock(string resourcePath) - { - _fileLocks.Release(resourcePath); - } - /// /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. /// @@ -204,7 +180,6 @@ namespace MediaBrowser.Common.IO { if (dispose) { - _fileLocks.Dispose(); } } } -- cgit v1.2.3