aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2024-04-21 18:11:22 -0500
committerJP Dillingham <jp@dillingham.me>2024-04-21 18:11:22 -0500
commitc9c01ad332a22cb190810f437d1bc17306a9982d (patch)
treea421b6468b15c1027e243bb6c3ff498be08baf5f /src
parent8191c984c52e886c3fba40c7fdcc48f9382abf46 (diff)
downloadslskd-c9c01ad332a22cb190810f437d1bc17306a9982d.tar.gz
add Clear()
Diffstat (limited to 'src')
-rw-r--r--src/slskd/Core/Blacklist.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/slskd/Core/Blacklist.cs b/src/slskd/Core/Blacklist.cs
index 857b9002..f9504c52 100644
--- a/src/slskd/Core/Blacklist.cs
+++ b/src/slskd/Core/Blacklist.cs
@@ -154,6 +154,11 @@ public class Blacklist
}
/// <summary>
+ /// Clears the contents of the Blacklist.
+ /// </summary>
+ public virtual void Clear() => Cache.Clear();
+
+ /// <summary>
/// Loads the contents of the specified <paramref name="filename"/> into the Blacklist.
/// </summary>
/// <remarks>