aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/slskd/Shares/IShareService.cs5
-rw-r--r--src/slskd/Shares/ShareService.cs10
2 files changed, 0 insertions, 15 deletions
diff --git a/src/slskd/Shares/IShareService.cs b/src/slskd/Shares/IShareService.cs
index fd88f2b0..16f1a890 100644
--- a/src/slskd/Shares/IShareService.cs
+++ b/src/slskd/Shares/IShareService.cs
@@ -27,11 +27,6 @@ namespace slskd.Shares
public interface IShareService
{
/// <summary>
- /// Gets the list of shares stored in the cache.
- /// </summary>
- IReadOnlyList<Share> CachedShares { get; }
-
- /// <summary>
/// Gets the list of configured shares.
/// </summary>
IReadOnlyList<Share> Shares { get; }
diff --git a/src/slskd/Shares/ShareService.cs b/src/slskd/Shares/ShareService.cs
index 169f6fff..60fbdda3 100644
--- a/src/slskd/Shares/ShareService.cs
+++ b/src/slskd/Shares/ShareService.cs
@@ -55,11 +55,6 @@ namespace slskd.Shares
Directories = current.Directories,
Files = current.Files,
});
-
- if (previous.Filling && !current.Filling)
- {
- CachedShares = current.Shares.ToList().AsReadOnly();
- }
});
OptionsMonitor = optionsMonitor;
@@ -74,11 +69,6 @@ namespace slskd.Shares
public IReadOnlyList<Share> Shares => SharesList.AsReadOnly();
/// <summary>
- /// Gets the list of shares stored in the cache.
- /// </summary>
- public IReadOnlyList<Share> CachedShares { get; private set; } = new List<Share>().AsReadOnly();
-
- /// <summary>
/// Gets the state monitor for the service.
/// </summary>
public IStateMonitor<ShareState> StateMonitor => State;