diff --git a/API/Services/Tasks/Scanner/LibraryWatcher.cs b/API/Services/Tasks/Scanner/LibraryWatcher.cs
index bf3abc72d..6dfc7abc5 100644
--- a/API/Services/Tasks/Scanner/LibraryWatcher.cs
+++ b/API/Services/Tasks/Scanner/LibraryWatcher.cs
@@ -11,52 +11,6 @@ using Microsoft.Extensions.Logging;
namespace API.Services.Tasks.Scanner;
-///
-/// Change information
-///
-public class Change
-{
- ///
- /// Gets or sets the type of the change.
- ///
- ///
- /// The type of the change.
- ///
- public WatcherChangeTypes ChangeType { get; set; }
-
- ///
- /// Gets or sets the full path.
- ///
- ///
- /// The full path.
- ///
- public string FullPath { get; set; }
-
- ///
- /// Gets or sets the name.
- ///
- ///
- /// The name.
- ///
- public string Name { get; set; }
-
- ///
- /// Gets or sets the old full path.
- ///
- ///
- /// The old full path.
- ///
- public string OldFullPath { get; set; }
-
- ///
- /// Gets or sets the old name.
- ///
- ///
- /// The old name.
- ///
- public string OldName { get; set; }
-}
-
public interface ILibraryWatcher
{
///
@@ -91,7 +45,7 @@ public class LibraryWatcher : ILibraryWatcher
/// This is just here to prevent GC from Disposing our watchers
///
private readonly IList _fileWatchers = new List();
- private static IList _libraryFolders = new List();
+ private IList _libraryFolders = new List();
///
/// The amount of time until the Schedule ScanFolder task should be executed
///
@@ -220,13 +174,6 @@ public class LibraryWatcher : ILibraryWatcher
return;
}
- // var libraryFolders = (await _unitOfWork.LibraryRepository.GetLibraryDtosAsync())
- // .SelectMany(l => l.Folders)
- // .Distinct()
- // .Select(Parser.Parser.NormalizePath)
- // .Where(_directoryService.Exists)
- // .ToList();
-
var fullPath = GetFolder(filePath, _libraryFolders);
if (string.IsNullOrEmpty(fullPath))
{