removed ExternalNotification.OnRename since it wasn't being used.

pull/23/head
kay.one 12 years ago
parent 1d78bb7210
commit a866c419e1

@ -5,8 +5,6 @@ using System.Linq;
using NLog; using NLog;
using NzbDrone.Common; using NzbDrone.Common;
using NzbDrone.Core.Configuration; using NzbDrone.Core.Configuration;
using NzbDrone.Core.Datastore;
using NzbDrone.Core.Download;
using NzbDrone.Core.Tv; using NzbDrone.Core.Tv;
using NzbDrone.Core.Model; using NzbDrone.Core.Model;
@ -20,7 +18,6 @@ namespace NzbDrone.Core.Providers
private readonly IEpisodeService _episodeService; private readonly IEpisodeService _episodeService;
private readonly MediaFileProvider _mediaFileProvider; private readonly MediaFileProvider _mediaFileProvider;
private readonly ExternalNotificationProvider _externalNotificationProvider; private readonly ExternalNotificationProvider _externalNotificationProvider;
private readonly DownloadProvider _downloadProvider;
private readonly SignalRProvider _signalRProvider; private readonly SignalRProvider _signalRProvider;
private readonly IConfigService _configService; private readonly IConfigService _configService;
private readonly RecycleBinProvider _recycleBinProvider; private readonly RecycleBinProvider _recycleBinProvider;
@ -28,7 +25,7 @@ namespace NzbDrone.Core.Providers
private readonly ISeriesRepository _seriesRepository; private readonly ISeriesRepository _seriesRepository;
public DiskScanProvider(DiskProvider diskProvider, IEpisodeService episodeService, MediaFileProvider mediaFileProvider, public DiskScanProvider(DiskProvider diskProvider, IEpisodeService episodeService, MediaFileProvider mediaFileProvider,
ExternalNotificationProvider externalNotificationProvider, DownloadProvider downloadProvider, ExternalNotificationProvider externalNotificationProvider,
SignalRProvider signalRProvider, IConfigService configService, SignalRProvider signalRProvider, IConfigService configService,
RecycleBinProvider recycleBinProvider, MediaInfoProvider mediaInfoProvider, ISeriesRepository seriesRepository) RecycleBinProvider recycleBinProvider, MediaInfoProvider mediaInfoProvider, ISeriesRepository seriesRepository)
{ {
@ -36,7 +33,6 @@ namespace NzbDrone.Core.Providers
_episodeService = episodeService; _episodeService = episodeService;
_mediaFileProvider = mediaFileProvider; _mediaFileProvider = mediaFileProvider;
_externalNotificationProvider = externalNotificationProvider; _externalNotificationProvider = externalNotificationProvider;
_downloadProvider = downloadProvider;
_signalRProvider = signalRProvider; _signalRProvider = signalRProvider;
_configService = configService; _configService = configService;
_recycleBinProvider = recycleBinProvider; _recycleBinProvider = recycleBinProvider;
@ -241,10 +237,6 @@ namespace NzbDrone.Core.Providers
foreach (var episode in episodes) foreach (var episode in episodes)
_signalRProvider.UpdateEpisodeStatus(episode.OID, EpisodeStatusType.Ready, parseResult.Quality); _signalRProvider.UpdateEpisodeStatus(episode.OID, EpisodeStatusType.Ready, parseResult.Quality);
} }
else
{
_externalNotificationProvider.OnRename(message, series);
}
return episodeFile; return episodeFile;
} }

@ -1,8 +1,6 @@
using NLog; using NLog;
using NzbDrone.Core.Configuration; using NzbDrone.Core.Configuration;
using NzbDrone.Core.Tv; using NzbDrone.Core.Tv;
using NzbDrone.Core.Providers.Core;
using NzbDrone.Core.Repository;
namespace NzbDrone.Core.Providers.ExternalNotification namespace NzbDrone.Core.Providers.ExternalNotification
{ {
@ -35,13 +33,6 @@ namespace NzbDrone.Core.Providers.ExternalNotification
/// <param name = "series">The Series for the new download</param> /// <param name = "series">The Series for the new download</param>
public abstract void OnDownload(string message, Series series); public abstract void OnDownload(string message, Series series);
/// <summary>
/// Performs the on rename action
/// </summary>
/// <param name = "message">The message to send to the receiver</param>
/// <param name = "series">The Series for the new download</param>
public abstract void OnRename(string message, Series series);
/// <summary> /// <summary>
/// Performs the after rename action, this will be handled after all renaming for episode/season/series /// Performs the after rename action, this will be handled after all renaming for episode/season/series
/// </summary> /// </summary>

@ -68,10 +68,6 @@ namespace NzbDrone.Core.Providers.ExternalNotification
} }
} }
public override void OnRename(string message, Series series)
{
}
public override void AfterRename(string message, Series series) public override void AfterRename(string message, Series series)
{ {

@ -46,11 +46,6 @@ namespace NzbDrone.Core.Providers.ExternalNotification
UpdateIfEnabled(); UpdateIfEnabled();
} }
public override void OnRename(string message, Series series)
{
}
public override void AfterRename(string message, Series series) public override void AfterRename(string message, Series series)
{ {
UpdateIfEnabled(); UpdateIfEnabled();

@ -67,11 +67,6 @@ namespace NzbDrone.Core.Providers.ExternalNotification
} }
} }
public override void OnRename(string message, Series series)
{
}
public override void AfterRename(string message, Series series) public override void AfterRename(string message, Series series)
{ {

@ -43,10 +43,7 @@ namespace NzbDrone.Core.Providers.ExternalNotification
} }
} }
public override void OnRename(string message, Series series)
{
}
public override void AfterRename(string message, Series series) public override void AfterRename(string message, Series series)
{ {

@ -39,11 +39,6 @@ namespace NzbDrone.Core.Providers.ExternalNotification
} }
} }
public override void OnRename(string message, Series series)
{
}
public override void AfterRename(string message, Series series) public override void AfterRename(string message, Series series)
{ {

@ -45,11 +45,6 @@ namespace NzbDrone.Core.Providers.ExternalNotification
UpdateAndClean(series); UpdateAndClean(series);
} }
public override void OnRename(string message, Series series)
{
}
public override void AfterRename(string message, Series series) public override void AfterRename(string message, Series series)
{ {
UpdateAndClean(series); UpdateAndClean(series);

@ -95,14 +95,6 @@ namespace NzbDrone.Core.Providers
} }
} }
public virtual void OnRename(string message, Series series)
{
foreach (var notifier in _notifiers.Where(i => GetSettings(i.GetType()).Enable))
{
notifier.OnRename(message, series);
}
}
public virtual void AfterRename(string message, Series series) public virtual void AfterRename(string message, Series series)
{ {
foreach (var notifier in _notifiers.Where(i => GetSettings(i.GetType()).Enable)) foreach (var notifier in _notifiers.Where(i => GetSettings(i.GetType()).Enable))

Loading…
Cancel
Save