From 8645fa9215575a42e2f6a21b3d2284f8c19e4b27 Mon Sep 17 00:00:00 2001 From: MW Date: Tue, 24 Feb 2009 18:06:06 +0000 Subject: [PATCH] Removed the additions from the last revision for the "ShowHelp" delegate handling, as it seems that system isn't in use anymore. --- OpenSim/Grid/Framework/IUGAIMCore.cs | 3 --- OpenSim/Grid/GridServer/GridServerBase.cs | 5 ----- OpenSim/Grid/MessagingServer/Main.cs | 5 ----- OpenSim/Grid/UserServer/Main.cs | 18 +----------------- .../Grid/UserServer/UserServerCommandModule.cs | 11 ----------- 5 files changed, 1 insertion(+), 41 deletions(-) diff --git a/OpenSim/Grid/Framework/IUGAIMCore.cs b/OpenSim/Grid/Framework/IUGAIMCore.cs index 77245ce291..a7df0d4634 100644 --- a/OpenSim/Grid/Framework/IUGAIMCore.cs +++ b/OpenSim/Grid/Framework/IUGAIMCore.cs @@ -30,14 +30,11 @@ using OpenSim.Framework.Servers; namespace OpenSim.Grid.Framework { - public delegate void ShowHelpDelegate(string[] helpArgs); - public interface IUGAIMCore { T Get(); void RegisterInterface(T iface); bool TryGet(out T iface); BaseHttpServer GetHttpServer(); - void RegisterConsoleHelpDelegate(ShowHelpDelegate showHelp); } } diff --git a/OpenSim/Grid/GridServer/GridServerBase.cs b/OpenSim/Grid/GridServer/GridServerBase.cs index 70dd8a645b..54a94433dc 100644 --- a/OpenSim/Grid/GridServer/GridServerBase.cs +++ b/OpenSim/Grid/GridServer/GridServerBase.cs @@ -255,11 +255,6 @@ namespace OpenSim.Grid.GridServer { return m_httpServer; } - - public void RegisterConsoleHelpDelegate(ShowHelpDelegate showHelp) - { - - } #endregion } } diff --git a/OpenSim/Grid/MessagingServer/Main.cs b/OpenSim/Grid/MessagingServer/Main.cs index 07d05802d6..53c5e28808 100644 --- a/OpenSim/Grid/MessagingServer/Main.cs +++ b/OpenSim/Grid/MessagingServer/Main.cs @@ -245,11 +245,6 @@ namespace OpenSim.Grid.MessagingServer { return m_httpServer; } - - public void RegisterConsoleHelpDelegate(ShowHelpDelegate showHelp) - { - - } #endregion } } diff --git a/OpenSim/Grid/UserServer/Main.cs b/OpenSim/Grid/UserServer/Main.cs index 49b00715c5..10235ab3ae 100644 --- a/OpenSim/Grid/UserServer/Main.cs +++ b/OpenSim/Grid/UserServer/Main.cs @@ -204,8 +204,6 @@ namespace OpenSim.Grid.UserServer #region IUGAIMCore protected Dictionary m_moduleInterfaces = new Dictionary(); - protected List m_showHelpDelegates = new List(); - /// /// Register an Module interface. @@ -244,13 +242,7 @@ namespace OpenSim.Grid.UserServer return m_httpServer; } - public void RegisterConsoleHelpDelegate(ShowHelpDelegate showHelp) - { - lock (m_showHelpDelegates) - { - m_showHelpDelegates.Add(showHelp); - } - } + #endregion #region Console Command Handlers @@ -258,14 +250,6 @@ namespace OpenSim.Grid.UserServer protected override void ShowHelp(string[] helpArgs) { base.ShowHelp(helpArgs); - - lock (m_showHelpDelegates) - { - foreach (ShowHelpDelegate d in m_showHelpDelegates) - { - d(helpArgs); - } - } } #endregion diff --git a/OpenSim/Grid/UserServer/UserServerCommandModule.cs b/OpenSim/Grid/UserServer/UserServerCommandModule.cs index f3dfc231da..d923c9a738 100644 --- a/OpenSim/Grid/UserServer/UserServerCommandModule.cs +++ b/OpenSim/Grid/UserServer/UserServerCommandModule.cs @@ -73,7 +73,6 @@ namespace OpenSim.Grid.UserServer public void PostInitialise() { - m_core.RegisterConsoleHelpDelegate(ShowHelp); } public void RegisterHandlers(BaseHttpServer httpServer) @@ -347,16 +346,6 @@ namespace OpenSim.Grid.UserServer break; } } - - public void ShowHelp(string[] helpArgs) - { - m_console.Notice("create user - create a new user"); - m_console.Notice("logoff-user - logs off the specified user from the grid"); - m_console.Notice("reset user password - reset a user's password."); - m_console.Notice("login-level - Set the miminim userlevel allowed To login."); - m_console.Notice("login-reset - reset the login level to its default value."); - m_console.Notice("login-text "); - } } #endregion }