diff options
author | Jeff Ames | 2008-03-25 03:49:08 +0000 |
---|---|---|
committer | Jeff Ames | 2008-03-25 03:49:08 +0000 |
commit | 9d1b42c39a779c84dd091a817d2f6e5f434777c4 (patch) | |
tree | 0c1c0ad1db253daf3f8fa8389d2a5ae98b899c11 /OpenSim/Region/ScriptEngine | |
parent | Fix a couple more warnings. (diff) | |
download | opensim-SC_OLD-9d1b42c39a779c84dd091a817d2f6e5f434777c4.zip opensim-SC_OLD-9d1b42c39a779c84dd091a817d2f6e5f434777c4.tar.gz opensim-SC_OLD-9d1b42c39a779c84dd091a817d2f6e5f434777c4.tar.bz2 opensim-SC_OLD-9d1b42c39a779c84dd091a817d2f6e5f434777c4.tar.xz |
Comment out unused private methods.
Diffstat (limited to 'OpenSim/Region/ScriptEngine')
4 files changed, 68 insertions, 63 deletions
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 | |||
141 | } | 141 | } |
142 | 142 | ||
143 | private static int privateThreadCount = 0; | 143 | private static int privateThreadCount = 0; |
144 | private Thread StartScriptLoadUnloadThread() | 144 | // TODO: unused |
145 | { | 145 | // private Thread StartScriptLoadUnloadThread() |
146 | Thread t = new Thread(ScriptLoadUnloadThreadLoop); | 146 | // { |
147 | string name = "ScriptLoadUnloadThread:"; | 147 | // Thread t = new Thread(ScriptLoadUnloadThreadLoop); |
148 | if (PrivateThread) | 148 | // string name = "ScriptLoadUnloadThread:"; |
149 | { | 149 | // if (PrivateThread) |
150 | name += "Private:" + privateThreadCount; | 150 | // { |
151 | privateThreadCount++; | 151 | // name += "Private:" + privateThreadCount; |
152 | } | 152 | // privateThreadCount++; |
153 | else | 153 | // } |
154 | { | 154 | // else |
155 | name += "Shared"; | 155 | // { |
156 | } | 156 | // name += "Shared"; |
157 | t.Name = name; | 157 | // } |
158 | t.IsBackground = true; | 158 | // t.Name = name; |
159 | t.Priority = ThreadPriority.Normal; | 159 | // t.IsBackground = true; |
160 | t.Start(); | 160 | // t.Priority = ThreadPriority.Normal; |
161 | OpenSim.Framework.ThreadTracker.Add(t); | 161 | // t.Start(); |
162 | return t; | 162 | // OpenSim.Framework.ThreadTracker.Add(t); |
163 | } | 163 | // return t; |
164 | // } | ||
164 | 165 | ||
165 | ~ScriptManager() | 166 | ~ScriptManager() |
166 | { | 167 | { |
@@ -184,26 +185,27 @@ namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase | |||
184 | 185 | ||
185 | #region Load / Unload scripts (Thread loop) | 186 | #region Load / Unload scripts (Thread loop) |
186 | 187 | ||
187 | private void ScriptLoadUnloadThreadLoop() | 188 | // TODO: unused |
188 | { | 189 | // private void ScriptLoadUnloadThreadLoop() |
189 | try | 190 | // { |
190 | { | 191 | // try |
191 | while (true) | 192 | // { |
192 | { | 193 | // while (true) |
193 | if (LUQueue.Count == 0) | 194 | // { |
194 | Thread.Sleep(scriptLoadUnloadThread_IdleSleepms); | 195 | // if (LUQueue.Count == 0) |
195 | //if (PleaseShutdown) | 196 | // Thread.Sleep(scriptLoadUnloadThread_IdleSleepms); |
196 | // return; | 197 | // //if (PleaseShutdown) |
197 | DoScriptLoadUnload(); | 198 | // // return; |
198 | } | 199 | // DoScriptLoadUnload(); |
199 | } | 200 | // } |
200 | catch (ThreadAbortException tae) | 201 | // } |
201 | { | 202 | // catch (ThreadAbortException tae) |
202 | string a = tae.ToString(); | 203 | // { |
203 | a = String.Empty; | 204 | // string a = tae.ToString(); |
204 | // Expected | 205 | // a = String.Empty; |
205 | } | 206 | // // Expected |
206 | } | 207 | // } |
208 | // } | ||
207 | 209 | ||
208 | public void DoScriptLoadUnload() | 210 | public void DoScriptLoadUnload() |
209 | { | 211 | { |
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 | |||
74 | Clients[ID].Disconnect(); | 74 | Clients[ID].Disconnect(); |
75 | } | 75 | } |
76 | 76 | ||
77 | void asyncConnected(IAsyncResult iar) | 77 | // TODO: unused |
78 | { | 78 | // void asyncConnected(IAsyncResult iar) |
79 | Socket client = (Socket)iar.AsyncState; | 79 | // { |
80 | client.EndConnect(iar); | 80 | // Socket client = (Socket)iar.AsyncState; |
81 | ProcessConnection(client); | 81 | // client.EndConnect(iar); |
82 | } | 82 | // ProcessConnection(client); |
83 | // } | ||
83 | 84 | ||
84 | private int ProcessConnection(Socket client) | 85 | private int ProcessConnection(Socket client) |
85 | { | 86 | { |
diff --git a/OpenSim/Region/ScriptEngine/LSOEngine/LSO/IL_common_functions.cs b/OpenSim/Region/ScriptEngine/LSOEngine/LSO/IL_common_functions.cs index a36ab1b..60d68f5 100644 --- a/OpenSim/Region/ScriptEngine/LSOEngine/LSO/IL_common_functions.cs +++ b/OpenSim/Region/ScriptEngine/LSOEngine/LSO/IL_common_functions.cs | |||
@@ -34,18 +34,19 @@ namespace OpenSim.Region.ScriptEngine.LSOEngine.LSO | |||
34 | { | 34 | { |
35 | internal partial class LSO_Parser | 35 | internal partial class LSO_Parser |
36 | { | 36 | { |
37 | private static TypeBuilder CreateType(ModuleBuilder modBuilder, string typeName) | 37 | // TODO: unused: |
38 | { | 38 | // private static TypeBuilder CreateType(ModuleBuilder modBuilder, string typeName) |
39 | TypeBuilder typeBuilder = modBuilder.DefineType(typeName, | 39 | // { |
40 | TypeAttributes.Public | | 40 | // TypeBuilder typeBuilder = modBuilder.DefineType(typeName, |
41 | TypeAttributes.Class | | 41 | // TypeAttributes.Public | |
42 | TypeAttributes.AutoClass | | 42 | // TypeAttributes.Class | |
43 | TypeAttributes.AnsiClass | | 43 | // TypeAttributes.AutoClass | |
44 | TypeAttributes.BeforeFieldInit | | 44 | // TypeAttributes.AnsiClass | |
45 | TypeAttributes.AutoLayout, | 45 | // TypeAttributes.BeforeFieldInit | |
46 | typeof (object), | 46 | // TypeAttributes.AutoLayout, |
47 | new Type[] {typeof (object)}); | 47 | // typeof (object), |
48 | return typeBuilder; | 48 | // new Type[] {typeof (object)}); |
49 | } | 49 | // return typeBuilder; |
50 | // } | ||
50 | } | 51 | } |
51 | } | 52 | } |
diff --git a/OpenSim/Region/ScriptEngine/LSOEngine/LSO/LSL_OPCODE_IL_processor.cs b/OpenSim/Region/ScriptEngine/LSOEngine/LSO/LSL_OPCODE_IL_processor.cs index ff0fe77..34a784c 100644 --- a/OpenSim/Region/ScriptEngine/LSOEngine/LSO/LSL_OPCODE_IL_processor.cs +++ b/OpenSim/Region/ScriptEngine/LSOEngine/LSO/LSL_OPCODE_IL_processor.cs | |||
@@ -342,10 +342,11 @@ namespace OpenSim.Region.ScriptEngine.LSOEngine.LSO | |||
342 | return false; | 342 | return false; |
343 | } | 343 | } |
344 | 344 | ||
345 | private void IL_PopToStack(ILGenerator il) | 345 | // TODO: unused |
346 | { | 346 | // private void IL_PopToStack(ILGenerator il) |
347 | IL_PopToStack(il, 1); | 347 | // { |
348 | } | 348 | // IL_PopToStack(il, 1); |
349 | // } | ||
349 | 350 | ||
350 | private void IL_PopToStack(ILGenerator il, int count) | 351 | private void IL_PopToStack(ILGenerator il, int count) |
351 | { | 352 | { |