From 9d1b42c39a779c84dd091a817d2f6e5f434777c4 Mon Sep 17 00:00:00 2001 From: Jeff Ames Date: Tue, 25 Mar 2008 03:49:08 +0000 Subject: Comment out unused private methods. --- .../Common/ScriptEngineBase/ScriptManager.cs | 82 +++++++++++----------- .../Region/ScriptEngine/Common/TRPC/TCPClient.cs | 13 ++-- 2 files changed, 49 insertions(+), 46 deletions(-) (limited to 'OpenSim/Region/ScriptEngine/Common') diff --git a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/ScriptManager.cs b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/ScriptManager.cs index 04de990..09f84d6 100644 --- a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/ScriptManager.cs +++ b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/ScriptManager.cs @@ -141,26 +141,27 @@ namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase } private static int privateThreadCount = 0; - private Thread StartScriptLoadUnloadThread() - { - Thread t = new Thread(ScriptLoadUnloadThreadLoop); - string name = "ScriptLoadUnloadThread:"; - if (PrivateThread) - { - name += "Private:" + privateThreadCount; - privateThreadCount++; - } - else - { - name += "Shared"; - } - t.Name = name; - t.IsBackground = true; - t.Priority = ThreadPriority.Normal; - t.Start(); - OpenSim.Framework.ThreadTracker.Add(t); - return t; - } +// TODO: unused +// private Thread StartScriptLoadUnloadThread() +// { +// Thread t = new Thread(ScriptLoadUnloadThreadLoop); +// string name = "ScriptLoadUnloadThread:"; +// if (PrivateThread) +// { +// name += "Private:" + privateThreadCount; +// privateThreadCount++; +// } +// else +// { +// name += "Shared"; +// } +// t.Name = name; +// t.IsBackground = true; +// t.Priority = ThreadPriority.Normal; +// t.Start(); +// OpenSim.Framework.ThreadTracker.Add(t); +// return t; +// } ~ScriptManager() { @@ -184,26 +185,27 @@ namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase #region Load / Unload scripts (Thread loop) - private void ScriptLoadUnloadThreadLoop() - { - try - { - while (true) - { - if (LUQueue.Count == 0) - Thread.Sleep(scriptLoadUnloadThread_IdleSleepms); - //if (PleaseShutdown) - // return; - DoScriptLoadUnload(); - } - } - catch (ThreadAbortException tae) - { - string a = tae.ToString(); - a = String.Empty; - // Expected - } - } +// TODO: unused +// private void ScriptLoadUnloadThreadLoop() +// { +// try +// { +// while (true) +// { +// if (LUQueue.Count == 0) +// Thread.Sleep(scriptLoadUnloadThread_IdleSleepms); +// //if (PleaseShutdown) +// // return; +// DoScriptLoadUnload(); +// } +// } +// catch (ThreadAbortException tae) +// { +// string a = tae.ToString(); +// a = String.Empty; +// // Expected +// } +// } public void DoScriptLoadUnload() { diff --git a/OpenSim/Region/ScriptEngine/Common/TRPC/TCPClient.cs b/OpenSim/Region/ScriptEngine/Common/TRPC/TCPClient.cs index 1187287..7689d69 100644 --- a/OpenSim/Region/ScriptEngine/Common/TRPC/TCPClient.cs +++ b/OpenSim/Region/ScriptEngine/Common/TRPC/TCPClient.cs @@ -74,12 +74,13 @@ namespace OpenSim.Region.ScriptEngine.Common.TRPC Clients[ID].Disconnect(); } - void asyncConnected(IAsyncResult iar) - { - Socket client = (Socket)iar.AsyncState; - client.EndConnect(iar); - ProcessConnection(client); - } +// TODO: unused +// void asyncConnected(IAsyncResult iar) +// { +// Socket client = (Socket)iar.AsyncState; +// client.EndConnect(iar); +// ProcessConnection(client); +// } private int ProcessConnection(Socket client) { -- cgit v1.1