Sfoglia il codice sorgente

Merge pull request #436 from cvium/remove_weird_admin_code

Remove RegisterServerWithAdministratorAccess
Joshua M. Boniface 6 anni fa
parent
commit
af6c4279ee
1 ha cambiato i file con 0 aggiunte e 27 eliminazioni
  1. 0 27
      Emby.Server.Implementations/ApplicationHost.cs

+ 0 - 27
Emby.Server.Implementations/ApplicationHost.cs

@@ -1310,7 +1310,6 @@ namespace Emby.Server.Implementations
         {
             if (!ServerConfigurationManager.Configuration.IsPortAuthorized)
             {
-                RegisterServerWithAdministratorAccess();
                 ServerConfigurationManager.Configuration.IsPortAuthorized = true;
                 ConfigurationManager.SaveConfiguration();
             }
@@ -2225,32 +2224,6 @@ namespace Emby.Server.Implementations
 
         protected abstract void ShutdownInternal();
 
-        /// <summary>
-        /// Registers the server with administrator access.
-        /// </summary>
-        private void RegisterServerWithAdministratorAccess()
-        {
-            Logger.LogInformation("Requesting administrative access to authorize http server");
-
-            try
-            {
-                AuthorizeServer();
-            }
-            catch (NotImplementedException)
-            {
-
-            }
-            catch (Exception ex)
-            {
-                Logger.LogError(ex, "Error authorizing server");
-            }
-        }
-
-        protected virtual void AuthorizeServer()
-        {
-            throw new NotImplementedException();
-        }
-
         public event EventHandler HasUpdateAvailableChanged;
 
         private bool _hasUpdateAvailable;