Skip to content

Commit

Permalink
Remove unnecessary IsPathLocked function
Browse files Browse the repository at this point in the history
  • Loading branch information
j-griffiths committed Oct 25, 2022
1 parent 08e7101 commit c2c286b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
6 changes: 0 additions & 6 deletions Emby.Server.Implementations/IO/LibraryMonitor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,6 @@ public void ReportFileSystemChangeBeginning(string path)
TemporarilyIgnore(path);
}

public bool IsPathLocked(string path)
{
// This method is not used by the core but it used by auto-organize
return _tempIgnoredPaths.Keys.Any(i => _fileSystem.AreEqual(i, path) || _fileSystem.ContainsSubPath(i, path));
}

public async void ReportFileSystemChangeComplete(string path, bool refreshPath)
{
if (string.IsNullOrEmpty(path))
Expand Down
7 changes: 0 additions & 7 deletions MediaBrowser.Controller/Library/ILibraryMonitor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,5 @@ public interface ILibraryMonitor : IDisposable
/// </summary>
/// <param name="path">The path.</param>
void ReportFileSystemChanged(string path);

/// <summary>
/// Determines whether [is path locked] [the specified path].
/// </summary>
/// <param name="path">The path.</param>
/// <returns><c>true</c> if [is path locked] [the specified path]; otherwise, <c>false</c>.</returns>
bool IsPathLocked(string path);
}
}

0 comments on commit c2c286b

Please sign in to comment.