From 71f164ca388efe640c378a9f0e14b374fc789c52 Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Tue, 27 Sep 2022 09:40:22 -0500 Subject: refactor listing --- src/slskd/Shares/SharedFileCache.cs | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'src/slskd/Shares/SharedFileCache.cs') diff --git a/src/slskd/Shares/SharedFileCache.cs b/src/slskd/Shares/SharedFileCache.cs index 190679a8..6e6cc6e6 100644 --- a/src/slskd/Shares/SharedFileCache.cs +++ b/src/slskd/Shares/SharedFileCache.cs @@ -50,13 +50,6 @@ namespace slskd.Shares /// The operation context. Task FillAsync(IEnumerable shares, IEnumerable filters); - /// - /// Returns the contents of the specified . - /// - /// The directory for which the contents are to be listed. - /// The contents of the directory. - Directory List(string directory); - /// /// Substitutes the mask in the specified with the original path, if the mask is tracked /// by the cache. @@ -379,17 +372,6 @@ namespace slskd.Shares } } - /// - /// Returns the contents of the specified . - /// - /// The directory for which the contents are to be listed. - /// The contents of the directory. - public Directory List(string directory) - { - var files = Repository.ListFiles(directory); - return new Directory(directory, files); - } - /// /// Substitutes the mask in the specified with the original path, if the mask is tracked /// by the cache. -- cgit v1.2.3