From e760fb9c7f22a9f67915bffbb6bb9c9b2e13fa37 Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Tue, 23 Aug 2022 08:07:42 -0500 Subject: remove CachedShares --- src/slskd/Shares/IShareService.cs | 5 ----- src/slskd/Shares/ShareService.cs | 10 ---------- 2 files changed, 15 deletions(-) (limited to 'src') 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 @@ -26,11 +26,6 @@ namespace slskd.Shares /// public interface IShareService { - /// - /// Gets the list of shares stored in the cache. - /// - IReadOnlyList CachedShares { get; } - /// /// Gets the list of configured shares. /// 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; @@ -73,11 +68,6 @@ namespace slskd.Shares /// public IReadOnlyList Shares => SharesList.AsReadOnly(); - /// - /// Gets the list of shares stored in the cache. - /// - public IReadOnlyList CachedShares { get; private set; } = new List().AsReadOnly(); - /// /// Gets the state monitor for the service. /// -- cgit v1.2.3