The Free Software Media System - Server Backend & API
Remove unused event
Bond-0098f703f4744b2
diff --git a/Emby.Server.Implementations/Activity/ActivityLogEntryPoint.cs b/Emby.Server.Implementations/Activity/ActivityLogEntryPoint.csindex 98cd97c318..190e4d55c0 100644--- a/Emby.Server.Implementations/Activity/ActivityLogEntryPoint.cs+++ b/Emby.Server.Implementations/Activity/ActivityLogEntryPoint.cs@@ -83,8 +83,6 @@ namespace Emby.Server.Implementations.Activity_deviceManager.CameraImageUploaded += OnCameraImageUploaded;- _appHost.ApplicationUpdated += OnApplicationUpdated;-return Task.CompletedTask;}@@ -275,16 +273,6 @@ namespace Emby.Server.Implementations.Activity});}- private void OnApplicationUpdated(object sender, GenericEventArgs<PackageVersionInfo> e)- {- CreateLogEntry(new ActivityLogEntry- {- Name = string.Format(_localization.GetLocalizedString("MessageApplicationUpdatedTo"), e.Argument.versionStr),- Type = NotificationType.ApplicationUpdateInstalled.ToString(),- Overview = e.Argument.description- });- }-private void OnUserPolicyUpdated(object sender, GenericEventArgs<User> e){CreateLogEntry(new ActivityLogEntry@@ -460,8 +448,6 @@ namespace Emby.Server.Implementations.Activity_userManager.UserLockedOut -= OnUserLockedOut;_deviceManager.CameraImageUploaded -= OnCameraImageUploaded;-- _appHost.ApplicationUpdated -= OnApplicationUpdated;}/// <summary>diff --git a/Emby.Server.Implementations/ApplicationHost.cs b/Emby.Server.Implementations/ApplicationHost.csindex 9804f28cf3..0ebbeea57e 100644--- a/Emby.Server.Implementations/ApplicationHost.cs+++ b/Emby.Server.Implementations/ApplicationHost.cs@@ -154,11 +154,6 @@ namespace Emby.Server.Implementations/// </summary>public event EventHandler HasPendingRestartChanged;- /// <summary>- /// Occurs when [application updated].- /// </summary>- public event EventHandler<GenericEventArgs<PackageVersionInfo>> ApplicationUpdated;-/// <summary>/// Gets a value indicating whether this instance has changes that require the entire application to restart./// </summary>@@ -1392,9 +1387,9 @@ namespace Emby.Server.Implementationspublic async Task<SystemInfo> GetSystemInfo(CancellationToken cancellationToken){var localAddress = await GetLocalApiUrl(cancellationToken).ConfigureAwait(false);-- string wanAddress;-++ string wanAddress;+if (string.IsNullOrEmpty(ServerConfigurationManager.Configuration.WanDdns)){wanAddress = await GetWanApiUrlFromExternal(cancellationToken).ConfigureAwait(false);@@ -1451,10 +1446,10 @@ namespace Emby.Server.Implementationspublic async Task<PublicSystemInfo> GetPublicSystemInfo(CancellationToken cancellationToken){- var localAddress = await GetLocalApiUrl(cancellationToken).ConfigureAwait(false);-+ var localAddress = await GetLocalApiUrl(cancellationToken).ConfigureAwait(false);+string wanAddress;-+if (string.IsNullOrEmpty(ServerConfigurationManager.Configuration.WanDdns)){wanAddress = await GetWanApiUrlFromExternal(cancellationToken).ConfigureAwait(false);@@ -1570,9 +1565,9 @@ namespace Emby.Server.Implementations}return string.Format("http://{0}:{1}",host,- ServerConfigurationManager.Configuration.PublicPort.ToString(CultureInfo.InvariantCulture));+ ServerConfigurationManager.Configuration.PublicPort.ToString(CultureInfo.InvariantCulture));}-+public Task<List<IpAddressInfo>> GetLocalIpAddresses(CancellationToken cancellationToken){return GetLocalIpAddressesInternal(true, 0, cancellationToken);diff --git a/MediaBrowser.Common/IApplicationHost.cs b/MediaBrowser.Common/IApplicationHost.csindex 2925a3efd9..cb7343440a 100644--- a/MediaBrowser.Common/IApplicationHost.cs+++ b/MediaBrowser.Common/IApplicationHost.cs@@ -25,11 +25,6 @@ namespace MediaBrowser.Common/// <value>The device identifier.</value>string SystemId { get; }- /// <summary>- /// Occurs when [application updated].- /// </summary>- event EventHandler<GenericEventArgs<PackageVersionInfo>> ApplicationUpdated;-/// <summary>/// Gets or sets a value indicating whether this instance has pending kernel reload./// </summary>