Removed basic notification. client side notification should be used.

This commit is contained in:
kay.one 2011-08-21 18:19:34 -07:00
commit 1e9b279a9b
6 changed files with 0 additions and 150 deletions

View file

@ -7,19 +7,12 @@ namespace NzbDrone.Core.Providers
{
public class NotificationProvider
{
private static readonly Dictionary<Guid, BasicNotification> _basicNotifications =
new Dictionary<Guid, BasicNotification>();
private static readonly Object _lock = new object();
private static readonly Dictionary<Guid, ProgressNotification> _progressNotification =
new Dictionary<Guid, ProgressNotification>();
public virtual List<BasicNotification> BasicNotifications
{
get { return new List<BasicNotification>(_basicNotifications.Values); }
}
public virtual List<ProgressNotification> ProgressNotifications
{
get
@ -51,28 +44,5 @@ namespace NzbDrone.Core.Providers
_progressNotification.Add(notification.Id, notification);
}
}
public virtual void Register(BasicNotification notification)
{
lock (_lock)
{
_basicNotifications.Add(notification.Id, notification);
}
}
public virtual void Dismiss(Guid notificationId)
{
lock (_lock)
{
if (_basicNotifications.ContainsKey(notificationId))
{
_basicNotifications.Remove(notificationId);
}
else if (_progressNotification.ContainsKey(notificationId))
{
_progressNotification.Remove(notificationId);
}
}
}
}
}