diff options
author | Adam Frisby | 2008-04-21 07:09:17 +0000 |
---|---|---|
committer | Adam Frisby | 2008-04-21 07:09:17 +0000 |
commit | fef3b3689492dea63693c964bcdbec9f5137eb5e (patch) | |
tree | 7791eef001d85d3e1de863a68f26ff9434d062ca /OpenSim/Region/ExtensionsScriptModule/Engines | |
parent | * Terrain Module code has been reformatted to comply with guidelines. (diff) | |
download | opensim-SC-fef3b3689492dea63693c964bcdbec9f5137eb5e.zip opensim-SC-fef3b3689492dea63693c964bcdbec9f5137eb5e.tar.gz opensim-SC-fef3b3689492dea63693c964bcdbec9f5137eb5e.tar.bz2 opensim-SC-fef3b3689492dea63693c964bcdbec9f5137eb5e.tar.xz |
* Optimised using statements and namespace references across entire project (this took a while to run).
Diffstat (limited to 'OpenSim/Region/ExtensionsScriptModule/Engines')
3 files changed, 10 insertions, 6 deletions
diff --git a/OpenSim/Region/ExtensionsScriptModule/Engines/CSharp/CSharpScriptEngine.cs b/OpenSim/Region/ExtensionsScriptModule/Engines/CSharp/CSharpScriptEngine.cs index deb289f..43049fc 100644 --- a/OpenSim/Region/ExtensionsScriptModule/Engines/CSharp/CSharpScriptEngine.cs +++ b/OpenSim/Region/ExtensionsScriptModule/Engines/CSharp/CSharpScriptEngine.cs | |||
@@ -28,14 +28,15 @@ | |||
28 | using System; | 28 | using System; |
29 | using System.CodeDom.Compiler; | 29 | using System.CodeDom.Compiler; |
30 | using System.Collections.Generic; | 30 | using System.Collections.Generic; |
31 | using System.Reflection; | ||
32 | using log4net; | ||
31 | using Microsoft.CSharp; | 33 | using Microsoft.CSharp; |
32 | using OpenSim.Framework.Console; | ||
33 | 34 | ||
34 | namespace OpenSim.Region.ExtensionsScriptModule.CSharp | 35 | namespace OpenSim.Region.ExtensionsScriptModule.CSharp |
35 | { | 36 | { |
36 | public class CSharpScriptEngine : IScriptCompiler | 37 | public class CSharpScriptEngine : IScriptCompiler |
37 | { | 38 | { |
38 | private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); | 39 | private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); |
39 | 40 | ||
40 | public string FileExt() | 41 | public string FileExt() |
41 | { | 42 | { |
diff --git a/OpenSim/Region/ExtensionsScriptModule/Engines/JScript/JScriptEngine.cs b/OpenSim/Region/ExtensionsScriptModule/Engines/JScript/JScriptEngine.cs index f5689cb..52afe3f 100644 --- a/OpenSim/Region/ExtensionsScriptModule/Engines/JScript/JScriptEngine.cs +++ b/OpenSim/Region/ExtensionsScriptModule/Engines/JScript/JScriptEngine.cs | |||
@@ -28,14 +28,15 @@ | |||
28 | using System; | 28 | using System; |
29 | using System.CodeDom.Compiler; | 29 | using System.CodeDom.Compiler; |
30 | using System.Collections.Generic; | 30 | using System.Collections.Generic; |
31 | using System.Reflection; | ||
32 | using log4net; | ||
31 | using Microsoft.JScript; | 33 | using Microsoft.JScript; |
32 | using OpenSim.Framework.Console; | ||
33 | 34 | ||
34 | namespace OpenSim.Region.ExtensionsScriptModule.JScript | 35 | namespace OpenSim.Region.ExtensionsScriptModule.JScript |
35 | { | 36 | { |
36 | public class JScriptEngine : IScriptCompiler | 37 | public class JScriptEngine : IScriptCompiler |
37 | { | 38 | { |
38 | private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); | 39 | private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); |
39 | 40 | ||
40 | public string FileExt() | 41 | public string FileExt() |
41 | { | 42 | { |
diff --git a/OpenSim/Region/ExtensionsScriptModule/Engines/JVMEngine/JVM/Interpreter.Methods.cs b/OpenSim/Region/ExtensionsScriptModule/Engines/JVMEngine/JVM/Interpreter.Methods.cs index 16c6e79..efd01e9 100644 --- a/OpenSim/Region/ExtensionsScriptModule/Engines/JVMEngine/JVM/Interpreter.Methods.cs +++ b/OpenSim/Region/ExtensionsScriptModule/Engines/JVMEngine/JVM/Interpreter.Methods.cs | |||
@@ -25,6 +25,8 @@ | |||
25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
26 | */ | 26 | */ |
27 | 27 | ||
28 | using System; | ||
29 | |||
28 | namespace OpenSim.Region.ExtensionsScriptModule.JVMEngine.JVM | 30 | namespace OpenSim.Region.ExtensionsScriptModule.JVMEngine.JVM |
29 | { | 31 | { |
30 | partial class Thread | 32 | partial class Thread |
@@ -46,8 +48,8 @@ namespace OpenSim.Region.ExtensionsScriptModule.JVMEngine.JVM | |||
46 | string typ = | 48 | string typ = |
47 | ((ClassRecord.PoolMethodRef) m_thread.currentClass.m_constantsPool[refIndex - 1]). | 49 | ((ClassRecord.PoolMethodRef) m_thread.currentClass.m_constantsPool[refIndex - 1]). |
48 | mNameType.Type.Value; | 50 | mNameType.Type.Value; |
49 | string typeparam = System.String.Empty; | 51 | string typeparam = String.Empty; |
50 | string typereturn = System.String.Empty; | 52 | string typereturn = String.Empty; |
51 | int firstbrak = 0; | 53 | int firstbrak = 0; |
52 | int secondbrak = 0; | 54 | int secondbrak = 0; |
53 | firstbrak = typ.LastIndexOf('('); | 55 | firstbrak = typ.LastIndexOf('('); |