aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Common
diff options
context:
space:
mode:
authorPatrick Barron <barronpm@gmail.com>2024-02-06 09:58:25 -0500
committerPatrick Barron <barronpm@gmail.com>2024-02-06 09:58:25 -0500
commit096043806581d305f1d56cf265183e70e2c81e49 (patch)
tree604661b2140edfac2d79bc6a6e8daf2bb4cfc1c3 /MediaBrowser.Common
parent8698b905947860ed59db1634e3765d78217d362d (diff)
Remove ActionableProgress
Diffstat (limited to 'MediaBrowser.Common')
-rw-r--r--MediaBrowser.Common/Progress/ActionableProgress.cs37
1 files changed, 0 insertions, 37 deletions
diff --git a/MediaBrowser.Common/Progress/ActionableProgress.cs b/MediaBrowser.Common/Progress/ActionableProgress.cs
deleted file mode 100644
index 0ba46ea3b..000000000
--- a/MediaBrowser.Common/Progress/ActionableProgress.cs
+++ /dev/null
@@ -1,37 +0,0 @@
-#pragma warning disable CS1591
-#pragma warning disable CA1003
-
-using System;
-
-namespace MediaBrowser.Common.Progress
-{
- /// <summary>
- /// Class ActionableProgress.
- /// </summary>
- /// <typeparam name="T">The type for the action parameter.</typeparam>
- public class ActionableProgress<T> : IProgress<T>
- {
- /// <summary>
- /// The _actions.
- /// </summary>
- private Action<T>? _action;
-
- public event EventHandler<T>? ProgressChanged;
-
- /// <summary>
- /// Registers the action.
- /// </summary>
- /// <param name="action">The action.</param>
- public void RegisterAction(Action<T> action)
- {
- _action = action;
- }
-
- public void Report(T value)
- {
- ProgressChanged?.Invoke(this, value);
-
- _action?.Invoke(value);
- }
- }
-}