From b1739cbbfdb14f5a3a8da8375c2d823af1f0f2bf Mon Sep 17 00:00:00 2001 From: Dr Scofield Date: Mon, 9 Feb 2009 10:40:12 +0000 Subject: fixing warnings. --- OpenSim/Region/Application/HGOpenSimNode.cs | 2 +- OpenSim/Region/Application/OpenSim.cs | 54 +++++++++++----------- .../ScriptEngine/Shared/Tests/LSL_ApiTest.cs | 24 +++++----- 3 files changed, 40 insertions(+), 40 deletions(-) (limited to 'OpenSim') diff --git a/OpenSim/Region/Application/HGOpenSimNode.cs b/OpenSim/Region/Application/HGOpenSimNode.cs index f85c9dd..c0f57f1 100644 --- a/OpenSim/Region/Application/HGOpenSimNode.cs +++ b/OpenSim/Region/Application/HGOpenSimNode.cs @@ -146,7 +146,7 @@ namespace OpenSim m_configSettings.See_into_region_from_neighbor, m_config.Source, m_version); } - void RunCommand(string module, string[] cp) + new void RunCommand(string module, string[] cp) { List cmdparams = new List(cp); if (cmdparams.Count < 1) diff --git a/OpenSim/Region/Application/OpenSim.cs b/OpenSim/Region/Application/OpenSim.cs index 37066c2..5aee06a 100644 --- a/OpenSim/Region/Application/OpenSim.cs +++ b/OpenSim/Region/Application/OpenSim.cs @@ -321,32 +321,32 @@ namespace OpenSim #region Console Commands - private void KickUserCommand(string module, string[] cmdparams) - { - if (cmdparams.Length < 4) - return; - - IList agents = m_sceneManager.GetCurrentSceneAvatars(); - - foreach (ScenePresence presence in agents) - { - RegionInfo regionInfo = m_sceneManager.GetRegionInfo(presence.RegionHandle); - - if (presence.Firstname.ToLower().Contains(cmdparams[2].ToLower()) && presence.Lastname.ToLower().Contains(cmdparams[3].ToLower())) - { - m_console.Notice( - String.Format( - "Kicking user: {0,-16}{1,-16}{2,-37} in region: {3,-16}", - presence.Firstname, - presence.Lastname, - presence.UUID, - regionInfo.RegionName)); - - presence.Scene.IncomingCloseAgent(presence.UUID); - } - } - m_console.Notice(""); - } + // private void KickUserCommand(string module, string[] cmdparams) + // { + // if (cmdparams.Length < 4) + // return; + + // IList agents = m_sceneManager.GetCurrentSceneAvatars(); + + // foreach (ScenePresence presence in agents) + // { + // RegionInfo regionInfo = m_sceneManager.GetRegionInfo(presence.RegionHandle); + + // if (presence.Firstname.ToLower().Contains(cmdparams[2].ToLower()) && presence.Lastname.ToLower().Contains(cmdparams[3].ToLower())) + // { + // m_console.Notice( + // String.Format( + // "Kicking user: {0,-16}{1,-16}{2,-37} in region: {3,-16}", + // presence.Firstname, + // presence.Lastname, + // presence.UUID, + // regionInfo.RegionName)); + + // presence.Scene.IncomingCloseAgent(presence.UUID); + // } + // } + // m_console.Notice(""); + // } /// /// Run an optional startup list of commands @@ -761,7 +761,7 @@ namespace OpenSim } // see BaseOpenSimServer - private void HandleShow(string mod, string[] cmd) + override public void HandleShow(string mod, string[] cmd) { List args = new List(cmd); args.RemoveAt(0); diff --git a/OpenSim/Region/ScriptEngine/Shared/Tests/LSL_ApiTest.cs b/OpenSim/Region/ScriptEngine/Shared/Tests/LSL_ApiTest.cs index e2718cc..291efd2 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Tests/LSL_ApiTest.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Tests/LSL_ApiTest.cs @@ -109,25 +109,25 @@ namespace OpenSim.Region.ScriptEngine.Shared.Tests return (float)(Math.PI * degrees / 180); } - private double FromRadians(float radians) - { - return radians * 180 / Math.PI; - } + // private double FromRadians(float radians) + // { + // return radians * 180 / Math.PI; + // } private double FromLslFloat(LSL_Types.LSLFloat lslFloat) { return lslFloat.value; } - private LSL_Types.LSLFloat ToLslFloat(double value) - { - return new LSL_Types.LSLFloat(value); - } + // private LSL_Types.LSLFloat ToLslFloat(double value) + // { + // return new LSL_Types.LSLFloat(value); + // } - private Quaternion FromLslQuaternion(LSL_Types.Quaternion lslQuaternion) - { - return new Quaternion((float)lslQuaternion.x, (float)lslQuaternion.y, (float)lslQuaternion.z, (float)lslQuaternion.s); - } + // private Quaternion FromLslQuaternion(LSL_Types.Quaternion lslQuaternion) + // { + // return new Quaternion((float)lslQuaternion.x, (float)lslQuaternion.y, (float)lslQuaternion.z, (float)lslQuaternion.s); + // } private LSL_Types.Quaternion ToLslQuaternion(Quaternion quaternion) { -- cgit v1.1