aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Shares
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2022-09-21 22:54:05 -0500
committerJP Dillingham <jp@dillingham.me>2022-09-21 22:54:05 -0500
commitc1a4994fd40cf5909008224ce2ce0457cc6342d6 (patch)
tree323e7ae31efb0234656a3fea3bc0e553fd34adb7 /src/slskd/Shares
parent1887d69479c160c5552f040ea3ba2a4765991602 (diff)
downloadslskd-c1a4994fd40cf5909008224ce2ce0457cc6342d6.tar.gz
remove explicit cache creation
Diffstat (limited to 'src/slskd/Shares')
-rw-r--r--src/slskd/Shares/IShareService.cs10
-rw-r--r--src/slskd/Shares/ISharedFileCache.cs6
-rw-r--r--src/slskd/Shares/ShareService.cs14
3 files changed, 0 insertions, 30 deletions
diff --git a/src/slskd/Shares/IShareService.cs b/src/slskd/Shares/IShareService.cs
index 7ee39313..962d4c1e 100644
--- a/src/slskd/Shares/IShareService.cs
+++ b/src/slskd/Shares/IShareService.cs
@@ -45,16 +45,6 @@ namespace slskd.Shares
Task<IEnumerable<Directory>> BrowseAsync();
/// <summary>
- /// (Re)Creates the cache.
- /// </summary>
- /// <remarks>
- /// This should generally only be called if <see cref="TryLoadFromDiskAsync"/> has returned false.
- /// </remarks>
- /// <param name="discardExisting">A value indicating whether an existing cache should be discarded prior to creation.</param>
- /// <returns>The operation context.</returns>
- Task CreateAsync(bool discardExisting = false);
-
- /// <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>
diff --git a/src/slskd/Shares/ISharedFileCache.cs b/src/slskd/Shares/ISharedFileCache.cs
index 61312a37..52c7783c 100644
--- a/src/slskd/Shares/ISharedFileCache.cs
+++ b/src/slskd/Shares/ISharedFileCache.cs
@@ -40,12 +40,6 @@ namespace slskd.Shares
IEnumerable<Directory> Browse();
/// <summary>
- /// (Re)Creates the cache.
- /// </summary>
- /// <param name="discardExisting">A value indicating whether an existing cache should be discarded prior to creation.</param>
- void Create(bool discardExisting = false);
-
- /// <summary>
/// Scans the configured shares and fills the cache.
/// </summary>
/// <remarks>Initiates the scan, then yields execution back to the caller; does not wait for the operation to complete.</remarks>
diff --git a/src/slskd/Shares/ShareService.cs b/src/slskd/Shares/ShareService.cs
index d40be652..96ac4c1c 100644
--- a/src/slskd/Shares/ShareService.cs
+++ b/src/slskd/Shares/ShareService.cs
@@ -99,20 +99,6 @@ namespace slskd.Shares
}
/// <summary>
- /// (Re)Creates the cache.
- /// </summary>
- /// <remarks>
- /// This should generally only be called if <see cref="TryLoadFromDiskAsync"/> has returned false.
- /// </remarks>
- /// <param name="discardExisting">A value indicating whether an existing cache should be discarded prior to creation.</param>
- /// <returns>The operation context.</returns>
- public Task CreateAsync(bool discardExisting = false)
- {
- Cache.Create(discardExisting);
- return Task.CompletedTask;
- }
-
- /// <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>