aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Shares/SharedFileCache.cs
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2022-09-27 09:40:22 -0500
committerJP Dillingham <jp@dillingham.me>2022-09-27 09:40:22 -0500
commit71f164ca388efe640c378a9f0e14b374fc789c52 (patch)
tree3def17286ee10a1a270d26fc469a0bc42f426f56 /src/slskd/Shares/SharedFileCache.cs
parent5cdb5cc91786c5f49bfa1f136c1c71fc52367110 (diff)
downloadslskd-71f164ca388efe640c378a9f0e14b374fc789c52.tar.gz
refactor listing
Diffstat (limited to 'src/slskd/Shares/SharedFileCache.cs')
-rw-r--r--src/slskd/Shares/SharedFileCache.cs18
1 files changed, 0 insertions, 18 deletions
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
@@ -51,13 +51,6 @@ namespace slskd.Shares
Task FillAsync(IEnumerable<Share> shares, IEnumerable<Regex> filters);
/// <summary>
- /// Returns the contents of the specified <paramref name="directory"/>.
- /// </summary>
- /// <param name="directory">The directory for which the contents are to be listed.</param>
- /// <returns>The contents of the directory.</returns>
- Directory List(string directory);
-
- /// <summary>
/// Substitutes the mask in the specified <paramref name="filename"/> with the original path, if the mask is tracked
/// by the cache.
/// </summary>
@@ -380,17 +373,6 @@ namespace slskd.Shares
}
/// <summary>
- /// Returns the contents of the specified <paramref name="directory"/>.
- /// </summary>
- /// <param name="directory">The directory for which the contents are to be listed.</param>
- /// <returns>The contents of the directory.</returns>
- public Directory List(string directory)
- {
- var files = Repository.ListFiles(directory);
- return new Directory(directory, files);
- }
-
- /// <summary>
/// Substitutes the mask in the specified <paramref name="filename"/> with the original path, if the mask is tracked
/// by the cache.
/// </summary>