diff options
author | Adam Frisby | 2008-05-01 14:45:56 +0000 |
---|---|---|
committer | Adam Frisby | 2008-05-01 14:45:56 +0000 |
commit | 4692e92312ceacf414629eb78f6d0725a2eb2ca5 (patch) | |
tree | 34da13ca5f7f19fc447f4fd341a43703183cfd55 | |
parent | Update svn properties. Minor formatting cleanup. (diff) | |
download | opensim-SC-4692e92312ceacf414629eb78f6d0725a2eb2ca5.zip opensim-SC-4692e92312ceacf414629eb78f6d0725a2eb2ca5.tar.gz opensim-SC-4692e92312ceacf414629eb78f6d0725a2eb2ca5.tar.bz2 opensim-SC-4692e92312ceacf414629eb78f6d0725a2eb2ca5.tar.xz |
* Assorted spring cleanings.
19 files changed, 28 insertions, 48 deletions
diff --git a/OpenSim/Data/SQLite/SQLiteRegionData.cs b/OpenSim/Data/SQLite/SQLiteRegionData.cs index 5a3d350..ea12a48 100644 --- a/OpenSim/Data/SQLite/SQLiteRegionData.cs +++ b/OpenSim/Data/SQLite/SQLiteRegionData.cs | |||
@@ -30,6 +30,7 @@ using System.Collections.Generic; | |||
30 | using System.Data; | 30 | using System.Data; |
31 | using System.IO; | 31 | using System.IO; |
32 | using System.Reflection; | 32 | using System.Reflection; |
33 | using System.Threading; | ||
33 | using libsecondlife; | 34 | using libsecondlife; |
34 | using log4net; | 35 | using log4net; |
35 | using Mono.Data.SqliteClient; | 36 | using Mono.Data.SqliteClient; |
@@ -990,13 +991,13 @@ namespace OpenSim.Data.SQLite | |||
990 | 991 | ||
991 | m_log.Error("[REGION DB]: The land table was recently updated. You need to restart the simulator. Exiting now."); | 992 | m_log.Error("[REGION DB]: The land table was recently updated. You need to restart the simulator. Exiting now."); |
992 | 993 | ||
993 | System.Threading.Thread.Sleep(10000); | 994 | Thread.Sleep(10000); |
994 | 995 | ||
995 | // ICK! but it's better then A thousand red SQLITE error messages! | 996 | // ICK! but it's better then A thousand red SQLITE error messages! |
996 | Environment.Exit(0); | 997 | Environment.Exit(0); |
997 | 998 | ||
998 | } | 999 | } |
999 | catch (System.Exception) | 1000 | catch (Exception) |
1000 | { | 1001 | { |
1001 | // ICK! but it's better then A thousand red SQLITE error messages! | 1002 | // ICK! but it's better then A thousand red SQLITE error messages! |
1002 | m_log.Error("[REGION DB]: The land table was recently updated. You need to restart the simulator"); | 1003 | m_log.Error("[REGION DB]: The land table was recently updated. You need to restart the simulator"); |
diff --git a/OpenSim/Framework/Communications/Cache/InventoryFolderImpl.cs b/OpenSim/Framework/Communications/Cache/InventoryFolderImpl.cs index 4dcf755..f6accf6 100644 --- a/OpenSim/Framework/Communications/Cache/InventoryFolderImpl.cs +++ b/OpenSim/Framework/Communications/Cache/InventoryFolderImpl.cs | |||
@@ -26,9 +26,9 @@ | |||
26 | */ | 26 | */ |
27 | 27 | ||
28 | using System.Collections.Generic; | 28 | using System.Collections.Generic; |
29 | using libsecondlife; | ||
29 | //using System.Reflection; | 30 | //using System.Reflection; |
30 | 31 | ||
31 | using libsecondlife; | ||
32 | //using log4net; | 32 | //using log4net; |
33 | 33 | ||
34 | namespace OpenSim.Framework.Communications.Cache | 34 | namespace OpenSim.Framework.Communications.Cache |
diff --git a/OpenSim/Framework/Communications/Cache/UserProfileCacheService.cs b/OpenSim/Framework/Communications/Cache/UserProfileCacheService.cs index 049b4a1..392d796 100644 --- a/OpenSim/Framework/Communications/Cache/UserProfileCacheService.cs +++ b/OpenSim/Framework/Communications/Cache/UserProfileCacheService.cs | |||
@@ -29,7 +29,6 @@ using System; | |||
29 | using System.Collections.Generic; | 29 | using System.Collections.Generic; |
30 | using System.Reflection; | 30 | using System.Reflection; |
31 | using System.Threading; | 31 | using System.Threading; |
32 | |||
33 | using libsecondlife; | 32 | using libsecondlife; |
34 | using log4net; | 33 | using log4net; |
35 | 34 | ||
diff --git a/OpenSim/Framework/Console/ConsoleBase.cs b/OpenSim/Framework/Console/ConsoleBase.cs index adaec4e..0b22d0e 100644 --- a/OpenSim/Framework/Console/ConsoleBase.cs +++ b/OpenSim/Framework/Console/ConsoleBase.cs | |||
@@ -26,12 +26,11 @@ | |||
26 | */ | 26 | */ |
27 | 27 | ||
28 | using System; | 28 | using System; |
29 | using System.Collections; | ||
30 | using System.Collections.Generic; | 29 | using System.Collections.Generic; |
31 | using System.Text.RegularExpressions; | ||
32 | using System.Diagnostics; | 30 | using System.Diagnostics; |
33 | using System.Net; | 31 | using System.Net; |
34 | using System.Reflection; | 32 | using System.Reflection; |
33 | using System.Text.RegularExpressions; | ||
35 | using log4net; | 34 | using log4net; |
36 | 35 | ||
37 | namespace OpenSim.Framework.Console | 36 | namespace OpenSim.Framework.Console |
diff --git a/OpenSim/Framework/UserAppearance.cs b/OpenSim/Framework/UserAppearance.cs index f9e27fa..b58ed2d 100644 --- a/OpenSim/Framework/UserAppearance.cs +++ b/OpenSim/Framework/UserAppearance.cs | |||
@@ -25,7 +25,6 @@ | |||
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 | using libsecondlife; | 28 | using libsecondlife; |
30 | 29 | ||
31 | namespace OpenSim.Framework | 30 | namespace OpenSim.Framework |
diff --git a/OpenSim/Grid/InventoryServer/GridInventoryService.cs b/OpenSim/Grid/InventoryServer/GridInventoryService.cs index f8467b6..db9a864 100644 --- a/OpenSim/Grid/InventoryServer/GridInventoryService.cs +++ b/OpenSim/Grid/InventoryServer/GridInventoryService.cs | |||
@@ -28,8 +28,6 @@ | |||
28 | using System; | 28 | using System; |
29 | using System.Collections.Generic; | 29 | using System.Collections.Generic; |
30 | using System.Reflection; | 30 | using System.Reflection; |
31 | using System.Threading; | ||
32 | |||
33 | using libsecondlife; | 31 | using libsecondlife; |
34 | using log4net; | 32 | using log4net; |
35 | using OpenSim.Framework; | 33 | using OpenSim.Framework; |
diff --git a/OpenSim/Grid/MessagingServer/MessageService.cs b/OpenSim/Grid/MessagingServer/MessageService.cs index d824d21..50e06af 100644 --- a/OpenSim/Grid/MessagingServer/MessageService.cs +++ b/OpenSim/Grid/MessagingServer/MessageService.cs | |||
@@ -36,6 +36,7 @@ using log4net; | |||
36 | using Nwc.XmlRpc; | 36 | using Nwc.XmlRpc; |
37 | using OpenSim.Data; | 37 | using OpenSim.Data; |
38 | using OpenSim.Framework; | 38 | using OpenSim.Framework; |
39 | |||
39 | //using System.Xml; | 40 | //using System.Xml; |
40 | 41 | ||
41 | namespace OpenSim.Grid.MessagingServer | 42 | namespace OpenSim.Grid.MessagingServer |
diff --git a/OpenSim/Region/Application/OpenSimMain.cs b/OpenSim/Region/Application/OpenSimMain.cs index cad0380..e89db3d 100644 --- a/OpenSim/Region/Application/OpenSimMain.cs +++ b/OpenSim/Region/Application/OpenSimMain.cs | |||
@@ -26,21 +26,17 @@ | |||
26 | */ | 26 | */ |
27 | 27 | ||
28 | using System; | 28 | using System; |
29 | using System.Collections; | ||
30 | using System.Collections.Generic; | 29 | using System.Collections.Generic; |
31 | using System.IO; | 30 | using System.IO; |
32 | using System.Net; | ||
33 | using System.Reflection; | 31 | using System.Reflection; |
34 | using System.Text; | 32 | using System.Text; |
35 | using System.Threading; | 33 | using System.Threading; |
36 | using System.Timers; | ||
37 | using libsecondlife; | 34 | using libsecondlife; |
38 | using log4net; | 35 | using log4net; |
39 | using Mono.Addins; | 36 | using Mono.Addins; |
40 | using Nini.Config; | 37 | using Nini.Config; |
41 | using OpenSim.Framework; | 38 | using OpenSim.Framework; |
42 | using OpenSim.Framework.Communications.Cache; | 39 | using OpenSim.Framework.Communications.Cache; |
43 | using OpenSim.Framework.Console; | ||
44 | using OpenSim.Framework.Servers; | 40 | using OpenSim.Framework.Servers; |
45 | using OpenSim.Framework.Statistics; | 41 | using OpenSim.Framework.Statistics; |
46 | using OpenSim.Region.ClientStack; | 42 | using OpenSim.Region.ClientStack; |
@@ -50,7 +46,6 @@ using OpenSim.Region.Environment; | |||
50 | using OpenSim.Region.Environment.Interfaces; | 46 | using OpenSim.Region.Environment.Interfaces; |
51 | using OpenSim.Region.Environment.Scenes; | 47 | using OpenSim.Region.Environment.Scenes; |
52 | using OpenSim.Region.Physics.Manager; | 48 | using OpenSim.Region.Physics.Manager; |
53 | using Timer=System.Timers.Timer; | ||
54 | 49 | ||
55 | namespace OpenSim | 50 | namespace OpenSim |
56 | { | 51 | { |
diff --git a/OpenSim/Region/Application/OpenSimMainConsole.cs b/OpenSim/Region/Application/OpenSimMainConsole.cs index 53e3583..ac5a1ec 100644 --- a/OpenSim/Region/Application/OpenSimMainConsole.cs +++ b/OpenSim/Region/Application/OpenSimMainConsole.cs | |||
@@ -26,33 +26,23 @@ | |||
26 | */ | 26 | */ |
27 | 27 | ||
28 | using System; | 28 | using System; |
29 | using System.Collections; | ||
29 | using System.Collections.Generic; | 30 | using System.Collections.Generic; |
30 | using System.Diagnostics; | ||
31 | using System.IO; | 31 | using System.IO; |
32 | using System.Text; | 32 | using System.Net; |
33 | using System.Reflection; | ||
33 | using System.Threading; | 34 | using System.Threading; |
34 | using System.Timers; | 35 | using System.Timers; |
36 | using libsecondlife; | ||
37 | using log4net; | ||
35 | using Nini.Config; | 38 | using Nini.Config; |
36 | using OpenSim.Framework; | 39 | using OpenSim.Framework; |
37 | using OpenSim.Framework.Communications.Cache; | ||
38 | using OpenSim.Framework.Console; | 40 | using OpenSim.Framework.Console; |
39 | using OpenSim.Framework.Servers; | ||
40 | using OpenSim.Framework.Statistics; | 41 | using OpenSim.Framework.Statistics; |
41 | using OpenSim.Region.ClientStack; | 42 | using OpenSim.Region.ClientStack; |
42 | using OpenSim.Region.Communications.Local; | ||
43 | using OpenSim.Region.Communications.OGS1; | ||
44 | using OpenSim.Region.Environment; | ||
45 | using OpenSim.Region.Environment.Interfaces; | 43 | using OpenSim.Region.Environment.Interfaces; |
46 | using OpenSim.Region.Environment.Scenes; | 44 | using OpenSim.Region.Environment.Scenes; |
47 | using OpenSim.Region.Physics.Manager; | ||
48 | using Timer=System.Timers.Timer; | 45 | using Timer=System.Timers.Timer; |
49 | using System.Net; | ||
50 | using Nwc.XmlRpc; | ||
51 | using System.Collections; | ||
52 | using System.Reflection; | ||
53 | using libsecondlife; | ||
54 | using Mono.Addins; | ||
55 | using Mono.Addins.Description; | ||
56 | 46 | ||
57 | namespace OpenSim | 47 | namespace OpenSim |
58 | { | 48 | { |
@@ -60,7 +50,7 @@ namespace OpenSim | |||
60 | 50 | ||
61 | public class OpenSimMainConsole : OpenSimMain, conscmd_callback | 51 | public class OpenSimMainConsole : OpenSimMain, conscmd_callback |
62 | { | 52 | { |
63 | private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); | 53 | private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); |
64 | 54 | ||
65 | protected string m_startupCommandsFile; | 55 | protected string m_startupCommandsFile; |
66 | protected string m_shutdownCommandsFile; | 56 | protected string m_shutdownCommandsFile; |
@@ -243,7 +233,7 @@ namespace OpenSim | |||
243 | } | 233 | } |
244 | else | 234 | else |
245 | { | 235 | { |
246 | m_sceneManager.CurrentScene.SetSceneCoreDebug(!System.Convert.ToBoolean(cmdparams[0]), !System.Convert.ToBoolean(cmdparams[1]), !System.Convert.ToBoolean(cmdparams[2])); | 236 | m_sceneManager.CurrentScene.SetSceneCoreDebug(!Convert.ToBoolean(cmdparams[0]), !Convert.ToBoolean(cmdparams[1]), !Convert.ToBoolean(cmdparams[2])); |
247 | } | 237 | } |
248 | } | 238 | } |
249 | else | 239 | else |
@@ -300,7 +290,7 @@ namespace OpenSim | |||
300 | // m_console.Notice("THREAD", _tc + ": ID: " + pt.Id + ", Started: " + pt.StartTime.ToString() + ", CPU time: " + pt.TotalProcessorTime + ", Pri: " + pt.BasePriority.ToString() + ", State: " + pt.ThreadState.ToString()); | 290 | // m_console.Notice("THREAD", _tc + ": ID: " + pt.Id + ", Started: " + pt.StartTime.ToString() + ", CPU time: " + pt.TotalProcessorTime + ", Pri: " + pt.BasePriority.ToString() + ", State: " + pt.ThreadState.ToString()); |
301 | // } | 291 | // } |
302 | 292 | ||
303 | List<Thread> threads = OpenSim.Framework.ThreadTracker.GetThreads(); | 293 | List<Thread> threads = ThreadTracker.GetThreads(); |
304 | if (threads == null) | 294 | if (threads == null) |
305 | { | 295 | { |
306 | m_console.Notice("THREAD", "Thread tracking is only enabled in DEBUG mode."); | 296 | m_console.Notice("THREAD", "Thread tracking is only enabled in DEBUG mode."); |
@@ -546,7 +536,7 @@ namespace OpenSim | |||
546 | case "unload": | 536 | case "unload": |
547 | if (cmdparams.Length > 1) | 537 | if (cmdparams.Length > 1) |
548 | { | 538 | { |
549 | foreach (IRegionModule rm in new System.Collections.ArrayList(m_moduleLoader.GetLoadedSharedModules)) | 539 | foreach (IRegionModule rm in new ArrayList(m_moduleLoader.GetLoadedSharedModules)) |
550 | { | 540 | { |
551 | if (rm.Name.ToLower() == cmdparams[1].ToLower()) | 541 | if (rm.Name.ToLower() == cmdparams[1].ToLower()) |
552 | { | 542 | { |
@@ -559,7 +549,7 @@ namespace OpenSim | |||
559 | case "load": | 549 | case "load": |
560 | if (cmdparams.Length > 1) | 550 | if (cmdparams.Length > 1) |
561 | { | 551 | { |
562 | foreach (Scene s in new System.Collections.ArrayList(m_sceneManager.Scenes)) | 552 | foreach (Scene s in new ArrayList(m_sceneManager.Scenes)) |
563 | { | 553 | { |
564 | 554 | ||
565 | m_console.Notice("Loading module: " + cmdparams[1]); | 555 | m_console.Notice("Loading module: " + cmdparams[1]); |
@@ -632,7 +622,7 @@ namespace OpenSim | |||
632 | { | 622 | { |
633 | RegionInfo regionInfo = m_sceneManager.GetRegionInfo(presence.RegionHandle); | 623 | RegionInfo regionInfo = m_sceneManager.GetRegionInfo(presence.RegionHandle); |
634 | string regionName; | 624 | string regionName; |
635 | System.Net.EndPoint ep = null; | 625 | EndPoint ep = null; |
636 | 626 | ||
637 | if (regionInfo == null) | 627 | if (regionInfo == null) |
638 | { | 628 | { |
diff --git a/OpenSim/Region/ClientStack/RegionApplicationBase.cs b/OpenSim/Region/ClientStack/RegionApplicationBase.cs index d3f6f20..3643088 100644 --- a/OpenSim/Region/ClientStack/RegionApplicationBase.cs +++ b/OpenSim/Region/ClientStack/RegionApplicationBase.cs | |||
@@ -33,11 +33,11 @@ using log4net; | |||
33 | using OpenSim.Framework; | 33 | using OpenSim.Framework; |
34 | using OpenSim.Framework.Communications; | 34 | using OpenSim.Framework.Communications; |
35 | using OpenSim.Framework.Communications.Cache; | 35 | using OpenSim.Framework.Communications.Cache; |
36 | //using OpenSim.Framework.Console; | ||
37 | using OpenSim.Framework.Servers; | 36 | using OpenSim.Framework.Servers; |
38 | using OpenSim.Region.Environment; | 37 | using OpenSim.Region.Environment; |
39 | using OpenSim.Region.Environment.Scenes; | 38 | using OpenSim.Region.Environment.Scenes; |
40 | using OpenSim.Region.Physics.Manager; | 39 | using OpenSim.Region.Physics.Manager; |
40 | //using OpenSim.Framework.Console; | ||
41 | 41 | ||
42 | namespace OpenSim.Region.ClientStack | 42 | namespace OpenSim.Region.ClientStack |
43 | { | 43 | { |
diff --git a/OpenSim/Region/Communications/OGS1/OGS1InventoryService.cs b/OpenSim/Region/Communications/OGS1/OGS1InventoryService.cs index b1816d0..8a35519 100644 --- a/OpenSim/Region/Communications/OGS1/OGS1InventoryService.cs +++ b/OpenSim/Region/Communications/OGS1/OGS1InventoryService.cs | |||
@@ -237,7 +237,7 @@ namespace OpenSim.Region.Communications.OGS1 | |||
237 | SynchronousRestObjectPoster.BeginPostObject<InventoryItemBase, bool>( | 237 | SynchronousRestObjectPoster.BeginPostObject<InventoryItemBase, bool>( |
238 | "POST", _inventoryServerUrl + "/NewItem/", item); | 238 | "POST", _inventoryServerUrl + "/NewItem/", item); |
239 | } | 239 | } |
240 | catch (System.Net.WebException e) | 240 | catch (WebException e) |
241 | { | 241 | { |
242 | m_log.ErrorFormat("[OGS1 INVENTORY SERVICE]: Update new inventory item operation failed, {0} {1}", | 242 | m_log.ErrorFormat("[OGS1 INVENTORY SERVICE]: Update new inventory item operation failed, {0} {1}", |
243 | e.Source, e.Message); | 243 | e.Source, e.Message); |
diff --git a/OpenSim/Region/Environment/ModuleLoader.cs b/OpenSim/Region/Environment/ModuleLoader.cs index b34e126..e0ea94f 100644 --- a/OpenSim/Region/Environment/ModuleLoader.cs +++ b/OpenSim/Region/Environment/ModuleLoader.cs | |||
@@ -32,7 +32,6 @@ using System.Reflection; | |||
32 | using log4net; | 32 | using log4net; |
33 | using Nini.Config; | 33 | using Nini.Config; |
34 | using OpenSim.Region.Environment.Interfaces; | 34 | using OpenSim.Region.Environment.Interfaces; |
35 | //TODO: Why do we reference InstantMessageModule here? | ||
36 | using OpenSim.Region.Environment.Modules.Agent.AssetTransaction; | 35 | using OpenSim.Region.Environment.Modules.Agent.AssetTransaction; |
37 | using OpenSim.Region.Environment.Modules.Avatar.Chat; | 36 | using OpenSim.Region.Environment.Modules.Avatar.Chat; |
38 | using OpenSim.Region.Environment.Modules.Avatar.InstantMessage; | 37 | using OpenSim.Region.Environment.Modules.Avatar.InstantMessage; |
@@ -40,6 +39,7 @@ using OpenSim.Region.Environment.Modules.Scripting.DynamicTexture; | |||
40 | using OpenSim.Region.Environment.Modules.Scripting.LoadImageURL; | 39 | using OpenSim.Region.Environment.Modules.Scripting.LoadImageURL; |
41 | using OpenSim.Region.Environment.Modules.Scripting.XMLRPC; | 40 | using OpenSim.Region.Environment.Modules.Scripting.XMLRPC; |
42 | using OpenSim.Region.Environment.Scenes; | 41 | using OpenSim.Region.Environment.Scenes; |
42 | //TODO: Why do we reference InstantMessageModule here? | ||
43 | 43 | ||
44 | namespace OpenSim.Region.Environment | 44 | namespace OpenSim.Region.Environment |
45 | { | 45 | { |
diff --git a/OpenSim/Region/Environment/Scenes/SceneCommunicationService.cs b/OpenSim/Region/Environment/Scenes/SceneCommunicationService.cs index 27967bc..91bbdb7 100644 --- a/OpenSim/Region/Environment/Scenes/SceneCommunicationService.cs +++ b/OpenSim/Region/Environment/Scenes/SceneCommunicationService.cs | |||
@@ -29,6 +29,7 @@ using System; | |||
29 | using System.Collections.Generic; | 29 | using System.Collections.Generic; |
30 | using System.Net; | 30 | using System.Net; |
31 | using System.Reflection; | 31 | using System.Reflection; |
32 | using System.Threading; | ||
32 | using libsecondlife; | 33 | using libsecondlife; |
33 | using log4net; | 34 | using log4net; |
34 | using OpenSim.Framework; | 35 | using OpenSim.Framework; |
@@ -580,7 +581,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
580 | avatar.ControllingClient.SendRegionTeleport(regionHandle, 13, reg.ExternalEndPoint, 4, (1 << 4), | 581 | avatar.ControllingClient.SendRegionTeleport(regionHandle, 13, reg.ExternalEndPoint, 4, (1 << 4), |
581 | capsPath); | 582 | capsPath); |
582 | avatar.MakeChildAgent(); | 583 | avatar.MakeChildAgent(); |
583 | System.Threading.Thread.Sleep(5000); | 584 | Thread.Sleep(5000); |
584 | avatar.CrossAttachmentsIntoNewRegion(regionHandle); | 585 | avatar.CrossAttachmentsIntoNewRegion(regionHandle); |
585 | if (KillObject != null) | 586 | if (KillObject != null) |
586 | { | 587 | { |
diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs index 5164d30..e53cfaa 100644 --- a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs +++ b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs | |||
@@ -30,7 +30,6 @@ using System.Collections.Generic; | |||
30 | using System.Drawing; | 30 | using System.Drawing; |
31 | using System.IO; | 31 | using System.IO; |
32 | using System.Xml; | 32 | using System.Xml; |
33 | using System.Xml.Serialization; | ||
34 | using Axiom.Math; | 33 | using Axiom.Math; |
35 | using libsecondlife; | 34 | using libsecondlife; |
36 | using libsecondlife.Packets; | 35 | using libsecondlife.Packets; |
diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs index 5f91176..18cae48 100644 --- a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs +++ b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs | |||
@@ -26,7 +26,6 @@ | |||
26 | */ | 26 | */ |
27 | 27 | ||
28 | using System; | 28 | using System; |
29 | using System.Collections; | ||
30 | using System.Collections.Generic; | 29 | using System.Collections.Generic; |
31 | using System.Drawing; | 30 | using System.Drawing; |
32 | using System.Runtime.Serialization; | 31 | using System.Runtime.Serialization; |
diff --git a/OpenSim/Region/Environment/Scenes/UndoState.cs b/OpenSim/Region/Environment/Scenes/UndoState.cs index 65c8669..daabd8d 100644 --- a/OpenSim/Region/Environment/Scenes/UndoState.cs +++ b/OpenSim/Region/Environment/Scenes/UndoState.cs | |||
@@ -25,8 +25,6 @@ | |||
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 | using System.Collections.Generic; | ||
30 | using libsecondlife; | 28 | using libsecondlife; |
31 | 29 | ||
32 | namespace OpenSim.Region.Environment.Scenes | 30 | namespace OpenSim.Region.Environment.Scenes |
diff --git a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs index 0773253..31ca3f3 100644 --- a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs +++ b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs | |||
@@ -3074,7 +3074,7 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
3074 | { | 3074 | { |
3075 | return Convert.ToInt32(src.Data[index]); | 3075 | return Convert.ToInt32(src.Data[index]); |
3076 | } | 3076 | } |
3077 | catch (System.FormatException e) | 3077 | catch (FormatException e) |
3078 | { | 3078 | { |
3079 | return 0; | 3079 | return 0; |
3080 | } | 3080 | } |
@@ -3109,7 +3109,7 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
3109 | { | 3109 | { |
3110 | return Convert.ToDouble(src.Data[index]); | 3110 | return Convert.ToDouble(src.Data[index]); |
3111 | } | 3111 | } |
3112 | catch (System.FormatException e) | 3112 | catch (FormatException e) |
3113 | { | 3113 | { |
3114 | return 0.0; | 3114 | return 0.0; |
3115 | } | 3115 | } |
diff --git a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/EventManager.cs b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/EventManager.cs index 261f862..77a4048 100644 --- a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/EventManager.cs +++ b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/EventManager.cs | |||
@@ -28,7 +28,6 @@ | |||
28 | using System; | 28 | using System; |
29 | using libsecondlife; | 29 | using libsecondlife; |
30 | using OpenSim.Framework; | 30 | using OpenSim.Framework; |
31 | using OpenSim.Region.Environment; | ||
32 | using OpenSim.Region.Environment.Modules.Avatar.Currency.SampleMoney; | 31 | using OpenSim.Region.Environment.Modules.Avatar.Currency.SampleMoney; |
33 | using OpenSim.Region.Environment.Scenes; | 32 | using OpenSim.Region.Environment.Scenes; |
34 | 33 | ||
diff --git a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/MaintenanceThread.cs b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/MaintenanceThread.cs index 458bd4c..3e9fc65 100644 --- a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/MaintenanceThread.cs +++ b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/MaintenanceThread.cs | |||
@@ -27,7 +27,9 @@ | |||
27 | 27 | ||
28 | using System; | 28 | using System; |
29 | using System.Collections; | 29 | using System.Collections; |
30 | using System.Reflection; | ||
30 | using System.Threading; | 31 | using System.Threading; |
32 | using log4net; | ||
31 | using OpenSim.Framework; | 33 | using OpenSim.Framework; |
32 | 34 | ||
33 | namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase | 35 | namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase |
@@ -38,7 +40,7 @@ namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase | |||
38 | public class MaintenanceThread : iScriptEngineFunctionModule | 40 | public class MaintenanceThread : iScriptEngineFunctionModule |
39 | { | 41 | { |
40 | 42 | ||
41 | private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); | 43 | private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); |
42 | 44 | ||
43 | //public ScriptEngine m_ScriptEngine; | 45 | //public ScriptEngine m_ScriptEngine; |
44 | private int MaintenanceLoopms; | 46 | private int MaintenanceLoopms; |
@@ -216,7 +218,7 @@ namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase | |||
216 | //} | 218 | //} |
217 | } | 219 | } |
218 | } | 220 | } |
219 | catch(System.Threading.ThreadAbortException ex) | 221 | catch(ThreadAbortException ex) |
220 | { | 222 | { |
221 | m_log.Error("Thread aborted in MaintenanceLoopThread. If this is during shutdown, please ignore"); | 223 | m_log.Error("Thread aborted in MaintenanceLoopThread. If this is during shutdown, please ignore"); |
222 | } | 224 | } |