diff options
* optimized usings.
Diffstat (limited to 'OpenSim/ApplicationPlugins/Rest/Inventory')
11 files changed, 30 insertions, 71 deletions
diff --git a/OpenSim/ApplicationPlugins/Rest/Inventory/IRest.cs b/OpenSim/ApplicationPlugins/Rest/Inventory/IRest.cs index f593349..7a7af31 100644 --- a/OpenSim/ApplicationPlugins/Rest/Inventory/IRest.cs +++ b/OpenSim/ApplicationPlugins/Rest/Inventory/IRest.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 | |||
30 | namespace OpenSim.ApplicationPlugins.Rest.Inventory | 28 | namespace OpenSim.ApplicationPlugins.Rest.Inventory |
31 | { | 29 | { |
32 | /// <summary> | 30 | /// <summary> |
diff --git a/OpenSim/ApplicationPlugins/Rest/Inventory/IRestHandler.cs b/OpenSim/ApplicationPlugins/Rest/Inventory/IRestHandler.cs index 997c2d3..b27f9c5 100644 --- a/OpenSim/ApplicationPlugins/Rest/Inventory/IRestHandler.cs +++ b/OpenSim/ApplicationPlugins/Rest/Inventory/IRestHandler.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 OpenSim.Framework.Servers; | 28 | using OpenSim.Framework.Servers; |
30 | 29 | ||
31 | namespace OpenSim.ApplicationPlugins.Rest.Inventory | 30 | namespace OpenSim.ApplicationPlugins.Rest.Inventory |
diff --git a/OpenSim/ApplicationPlugins/Rest/Inventory/RequestData.cs b/OpenSim/ApplicationPlugins/Rest/Inventory/RequestData.cs index 20e619a..2ce5166 100644 --- a/OpenSim/ApplicationPlugins/Rest/Inventory/RequestData.cs +++ b/OpenSim/ApplicationPlugins/Rest/Inventory/RequestData.cs | |||
@@ -26,17 +26,14 @@ | |||
26 | */ | 26 | */ |
27 | 27 | ||
28 | using System; | 28 | using System; |
29 | using System.Collections.Generic; | ||
29 | using System.IO; | 30 | using System.IO; |
30 | using System.Reflection; | ||
31 | using System.Text; | ||
32 | using System.Security.Cryptography; | 31 | using System.Security.Cryptography; |
32 | using System.Text; | ||
33 | using System.Text.RegularExpressions; | 33 | using System.Text.RegularExpressions; |
34 | using System.Collections.Generic; | 34 | using System.Xml; |
35 | using System.Collections.Specialized; | ||
36 | using OpenSim.Framework; | 35 | using OpenSim.Framework; |
37 | using OpenSim.Framework.Servers; | 36 | using OpenSim.Framework.Servers; |
38 | using OpenMetaverse; | ||
39 | using System.Xml; | ||
40 | 37 | ||
41 | namespace OpenSim.ApplicationPlugins.Rest.Inventory | 38 | namespace OpenSim.ApplicationPlugins.Rest.Inventory |
42 | { | 39 | { |
diff --git a/OpenSim/ApplicationPlugins/Rest/Inventory/Rest.cs b/OpenSim/ApplicationPlugins/Rest/Inventory/Rest.cs index bfa27c3..2ac1001 100644 --- a/OpenSim/ApplicationPlugins/Rest/Inventory/Rest.cs +++ b/OpenSim/ApplicationPlugins/Rest/Inventory/Rest.cs | |||
@@ -30,18 +30,17 @@ using System; | |||
30 | using System.Collections.Generic; | 30 | using System.Collections.Generic; |
31 | using System.Reflection; | 31 | using System.Reflection; |
32 | using System.Text; | 32 | using System.Text; |
33 | using log4net; | ||
34 | using Nini.Config; | ||
33 | using OpenSim.Framework; | 35 | using OpenSim.Framework; |
34 | using OpenSim.Framework.Servers; | ||
35 | using OpenSim.Framework.Communications; | 36 | using OpenSim.Framework.Communications; |
36 | using OpenSim.Framework.Communications.Cache; | ||
37 | using Nini.Config; | ||
38 | 37 | ||
39 | namespace OpenSim.ApplicationPlugins.Rest.Inventory | 38 | namespace OpenSim.ApplicationPlugins.Rest.Inventory |
40 | { | 39 | { |
41 | public class Rest | 40 | public class Rest |
42 | { | 41 | { |
43 | internal static readonly log4net.ILog Log = | 42 | internal static readonly ILog Log = |
44 | log4net.LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); | 43 | LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); |
45 | 44 | ||
46 | internal static bool DEBUG = Log.IsDebugEnabled; | 45 | internal static bool DEBUG = Log.IsDebugEnabled; |
47 | 46 | ||
@@ -468,25 +467,25 @@ namespace OpenSim.ApplicationPlugins.Rest.Inventory | |||
468 | 467 | ||
469 | public static void Dump(byte[] data) | 468 | public static void Dump(byte[] data) |
470 | { | 469 | { |
471 | char[] buffer = new char[Rest.DumpLineSize]; | 470 | char[] buffer = new char[DumpLineSize]; |
472 | int cc = 0; | 471 | int cc = 0; |
473 | 472 | ||
474 | for (int i = 0; i < data.Length; i++) | 473 | for (int i = 0; i < data.Length; i++) |
475 | { | 474 | { |
476 | if (i % Rest.DumpLineSize == 0) Console.Write("\n{0}: ",i.ToString("d8")); | 475 | if (i % DumpLineSize == 0) Console.Write("\n{0}: ",i.ToString("d8")); |
477 | 476 | ||
478 | if (i % 4 == 0) Console.Write(" "); | 477 | if (i % 4 == 0) Console.Write(" "); |
479 | 478 | ||
480 | Console.Write("{0}",data[i].ToString("x2")); | 479 | Console.Write("{0}",data[i].ToString("x2")); |
481 | 480 | ||
482 | if (data[i] < 127 && data[i] > 31) | 481 | if (data[i] < 127 && data[i] > 31) |
483 | buffer[i % Rest.DumpLineSize] = (char) data[i]; | 482 | buffer[i % DumpLineSize] = (char) data[i]; |
484 | else | 483 | else |
485 | buffer[i % Rest.DumpLineSize] = '.'; | 484 | buffer[i % DumpLineSize] = '.'; |
486 | 485 | ||
487 | cc++; | 486 | cc++; |
488 | 487 | ||
489 | if (i != 0 && (i + 1) % Rest.DumpLineSize == 0) | 488 | if (i != 0 && (i + 1) % DumpLineSize == 0) |
490 | { | 489 | { |
491 | Console.Write(" |"+(new String(buffer))+"|"); | 490 | Console.Write(" |"+(new String(buffer))+"|"); |
492 | cc = 0; | 491 | cc = 0; |
@@ -497,11 +496,11 @@ namespace OpenSim.ApplicationPlugins.Rest.Inventory | |||
497 | 496 | ||
498 | if (cc != 0) | 497 | if (cc != 0) |
499 | { | 498 | { |
500 | for (int i = cc ; i < Rest.DumpLineSize; i++) | 499 | for (int i = cc ; i < DumpLineSize; i++) |
501 | { | 500 | { |
502 | if (i % 4 == 0) Console.Write(" "); | 501 | if (i % 4 == 0) Console.Write(" "); |
503 | Console.Write(" "); | 502 | Console.Write(" "); |
504 | buffer[i % Rest.DumpLineSize] = ' '; | 503 | buffer[i % DumpLineSize] = ' '; |
505 | } | 504 | } |
506 | Console.WriteLine(" |"+(new String(buffer))+"|"); | 505 | Console.WriteLine(" |"+(new String(buffer))+"|"); |
507 | } | 506 | } |
diff --git a/OpenSim/ApplicationPlugins/Rest/Inventory/RestAppearanceServices.cs b/OpenSim/ApplicationPlugins/Rest/Inventory/RestAppearanceServices.cs index 0775007..667cf57 100644 --- a/OpenSim/ApplicationPlugins/Rest/Inventory/RestAppearanceServices.cs +++ b/OpenSim/ApplicationPlugins/Rest/Inventory/RestAppearanceServices.cs | |||
@@ -27,18 +27,10 @@ | |||
27 | 27 | ||
28 | using System; | 28 | using System; |
29 | using System.Collections; | 29 | using System.Collections; |
30 | using System.Collections.Generic; | ||
31 | using System.IO; | ||
32 | using System.Threading; | ||
33 | using System.Xml; | 30 | using System.Xml; |
34 | using System.Drawing; | 31 | using OpenMetaverse; |
35 | using OpenSim.Framework; | 32 | using OpenSim.Framework; |
36 | using OpenSim.Framework.Servers; | 33 | using OpenSim.Framework.Servers; |
37 | using OpenSim.Framework.Communications; | ||
38 | using OpenSim.Framework.Communications.Cache; | ||
39 | using OpenMetaverse; | ||
40 | using OpenMetaverse.Imaging; | ||
41 | using Nini.Config; | ||
42 | 34 | ||
43 | namespace OpenSim.ApplicationPlugins.Rest.Inventory | 35 | namespace OpenSim.ApplicationPlugins.Rest.Inventory |
44 | { | 36 | { |
diff --git a/OpenSim/ApplicationPlugins/Rest/Inventory/RestAssetServices.cs b/OpenSim/ApplicationPlugins/Rest/Inventory/RestAssetServices.cs index 241bc90..2996030 100644 --- a/OpenSim/ApplicationPlugins/Rest/Inventory/RestAssetServices.cs +++ b/OpenSim/ApplicationPlugins/Rest/Inventory/RestAssetServices.cs | |||
@@ -25,17 +25,11 @@ | |||
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 OpenMetaverse; | ||
29 | using Nini.Config; | ||
30 | using System; | 28 | using System; |
31 | using System.Collections.Generic; | ||
32 | using System.IO; | ||
33 | using System.Threading; | ||
34 | using System.Xml; | 29 | using System.Xml; |
30 | using OpenMetaverse; | ||
35 | using OpenSim.Framework; | 31 | using OpenSim.Framework; |
36 | using OpenSim.Framework.Servers; | 32 | using OpenSim.Framework.Servers; |
37 | using OpenSim.Framework.Communications; | ||
38 | using OpenSim.Framework.Communications.Cache; | ||
39 | 33 | ||
40 | namespace OpenSim.ApplicationPlugins.Rest.Inventory | 34 | namespace OpenSim.ApplicationPlugins.Rest.Inventory |
41 | { | 35 | { |
diff --git a/OpenSim/ApplicationPlugins/Rest/Inventory/RestHandler.cs b/OpenSim/ApplicationPlugins/Rest/Inventory/RestHandler.cs index c022e09..81801df 100644 --- a/OpenSim/ApplicationPlugins/Rest/Inventory/RestHandler.cs +++ b/OpenSim/ApplicationPlugins/Rest/Inventory/RestHandler.cs | |||
@@ -28,9 +28,7 @@ | |||
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 OpenSim.Framework; | ||
32 | using OpenSim.Framework.Servers; | 31 | using OpenSim.Framework.Servers; |
33 | using OpenSim.ApplicationPlugins.Rest; | ||
34 | 32 | ||
35 | namespace OpenSim.ApplicationPlugins.Rest.Inventory | 33 | namespace OpenSim.ApplicationPlugins.Rest.Inventory |
36 | { | 34 | { |
diff --git a/OpenSim/ApplicationPlugins/Rest/Inventory/RestInventoryServices.cs b/OpenSim/ApplicationPlugins/Rest/Inventory/RestInventoryServices.cs index aa222bb..853b004 100644 --- a/OpenSim/ApplicationPlugins/Rest/Inventory/RestInventoryServices.cs +++ b/OpenSim/ApplicationPlugins/Rest/Inventory/RestInventoryServices.cs | |||
@@ -27,18 +27,18 @@ | |||
27 | 27 | ||
28 | using System; | 28 | using System; |
29 | using System.Collections.Generic; | 29 | using System.Collections.Generic; |
30 | using System.Drawing; | ||
31 | using System.Globalization; | ||
30 | using System.IO; | 32 | using System.IO; |
31 | using System.Threading; | 33 | using System.Threading; |
32 | using System.Xml; | ||
33 | using System.Drawing; | ||
34 | using System.Timers; | 34 | using System.Timers; |
35 | using OpenSim.Framework; | 35 | using System.Xml; |
36 | using OpenSim.Framework.Servers; | ||
37 | using OpenSim.Framework.Communications; | ||
38 | using OpenSim.Framework.Communications.Cache; | ||
39 | using OpenMetaverse; | 36 | using OpenMetaverse; |
40 | using OpenMetaverse.Imaging; | 37 | using OpenMetaverse.Imaging; |
41 | using Nini.Config; | 38 | using OpenSim.Framework; |
39 | using OpenSim.Framework.Communications.Cache; | ||
40 | using OpenSim.Framework.Servers; | ||
41 | using Timer=System.Timers.Timer; | ||
42 | 42 | ||
43 | namespace OpenSim.ApplicationPlugins.Rest.Inventory | 43 | namespace OpenSim.ApplicationPlugins.Rest.Inventory |
44 | { | 44 | { |
@@ -1931,19 +1931,19 @@ namespace OpenSim.ApplicationPlugins.Rest.Inventory | |||
1931 | switch (ic.xml.Name) | 1931 | switch (ic.xml.Name) |
1932 | { | 1932 | { |
1933 | case "current": | 1933 | case "current": |
1934 | ic.CurrentPermissions = UInt32.Parse(ic.xml.Value, System.Globalization.NumberStyles.HexNumber); | 1934 | ic.CurrentPermissions = UInt32.Parse(ic.xml.Value, NumberStyles.HexNumber); |
1935 | break; | 1935 | break; |
1936 | case "next": | 1936 | case "next": |
1937 | ic.NextPermissions = UInt32.Parse(ic.xml.Value, System.Globalization.NumberStyles.HexNumber); | 1937 | ic.NextPermissions = UInt32.Parse(ic.xml.Value, NumberStyles.HexNumber); |
1938 | break; | 1938 | break; |
1939 | case "group": | 1939 | case "group": |
1940 | ic.GroupPermissions = UInt32.Parse(ic.xml.Value, System.Globalization.NumberStyles.HexNumber); | 1940 | ic.GroupPermissions = UInt32.Parse(ic.xml.Value, NumberStyles.HexNumber); |
1941 | break; | 1941 | break; |
1942 | case "everyone": | 1942 | case "everyone": |
1943 | ic.EveryOnePermissions = UInt32.Parse(ic.xml.Value, System.Globalization.NumberStyles.HexNumber); | 1943 | ic.EveryOnePermissions = UInt32.Parse(ic.xml.Value, NumberStyles.HexNumber); |
1944 | break; | 1944 | break; |
1945 | case "base": | 1945 | case "base": |
1946 | ic.BasePermissions = UInt32.Parse(ic.xml.Value, System.Globalization.NumberStyles.HexNumber); | 1946 | ic.BasePermissions = UInt32.Parse(ic.xml.Value, NumberStyles.HexNumber); |
1947 | break; | 1947 | break; |
1948 | default: | 1948 | default: |
1949 | Rest.Log.DebugFormat("{0} Permissions: invalid attribute {1}:{2}", | 1949 | Rest.Log.DebugFormat("{0} Permissions: invalid attribute {1}:{2}", |
@@ -2176,7 +2176,7 @@ namespace OpenSim.ApplicationPlugins.Rest.Inventory | |||
2176 | internal UserProfileData userProfile = null; | 2176 | internal UserProfileData userProfile = null; |
2177 | internal InventoryFolderBase root = null; | 2177 | internal InventoryFolderBase root = null; |
2178 | internal bool timeout = false; | 2178 | internal bool timeout = false; |
2179 | internal System.Timers.Timer watchDog = new System.Timers.Timer(); | 2179 | internal Timer watchDog = new Timer(); |
2180 | 2180 | ||
2181 | internal InventoryRequestData(OSHttpRequest request, OSHttpResponse response, string prefix) | 2181 | internal InventoryRequestData(OSHttpRequest request, OSHttpResponse response, string prefix) |
2182 | : base(request, response, prefix) | 2182 | : base(request, response, prefix) |
diff --git a/OpenSim/ApplicationPlugins/Rest/Inventory/RestTestServices.cs b/OpenSim/ApplicationPlugins/Rest/Inventory/RestTestServices.cs index b7c9027..1e87996 100644 --- a/OpenSim/ApplicationPlugins/Rest/Inventory/RestTestServices.cs +++ b/OpenSim/ApplicationPlugins/Rest/Inventory/RestTestServices.cs | |||
@@ -26,17 +26,10 @@ | |||
26 | * | 26 | * |
27 | */ | 27 | */ |
28 | 28 | ||
29 | using OpenMetaverse; | ||
30 | using Nini.Config; | ||
31 | using System; | 29 | using System; |
32 | using System.IO; | ||
33 | using System.Collections.Generic; | 30 | using System.Collections.Generic; |
34 | using System.Reflection; | 31 | using System.Reflection; |
35 | using System.Threading; | ||
36 | using OpenSim.Framework; | ||
37 | using OpenSim.Framework.Servers; | 32 | using OpenSim.Framework.Servers; |
38 | using OpenSim.Framework.Communications; | ||
39 | using OpenSim.Framework.Communications.Cache; | ||
40 | 33 | ||
41 | namespace OpenSim.ApplicationPlugins.Rest.Inventory | 34 | namespace OpenSim.ApplicationPlugins.Rest.Inventory |
42 | { | 35 | { |
diff --git a/OpenSim/ApplicationPlugins/Rest/Inventory/tests/ITest.cs b/OpenSim/ApplicationPlugins/Rest/Inventory/tests/ITest.cs index a3f1d14..8c3ef75 100644 --- a/OpenSim/ApplicationPlugins/Rest/Inventory/tests/ITest.cs +++ b/OpenSim/ApplicationPlugins/Rest/Inventory/tests/ITest.cs | |||
@@ -26,8 +26,6 @@ | |||
26 | * | 26 | * |
27 | */ | 27 | */ |
28 | 28 | ||
29 | using System; | ||
30 | |||
31 | namespace OpenSim.ApplicationPlugins.Rest.Inventory | 29 | namespace OpenSim.ApplicationPlugins.Rest.Inventory |
32 | { | 30 | { |
33 | 31 | ||
diff --git a/OpenSim/ApplicationPlugins/Rest/Inventory/tests/Remote.cs b/OpenSim/ApplicationPlugins/Rest/Inventory/tests/Remote.cs index 4a98834..c81cb9f 100644 --- a/OpenSim/ApplicationPlugins/Rest/Inventory/tests/Remote.cs +++ b/OpenSim/ApplicationPlugins/Rest/Inventory/tests/Remote.cs | |||
@@ -25,18 +25,9 @@ | |||
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 OpenMetaverse; | ||
29 | using Nini.Config; | ||
30 | using System; | 28 | using System; |
31 | using System.Collections.Generic; | 29 | using OpenMetaverse; |
32 | using System.IO; | ||
33 | using System.Threading; | ||
34 | using System.Xml; | ||
35 | using OpenSim.Framework; | ||
36 | using OpenSim.Region.Framework.Scenes; | 30 | using OpenSim.Region.Framework.Scenes; |
37 | using OpenSim.Framework.Servers; | ||
38 | using OpenSim.Framework.Communications; | ||
39 | using OpenSim.Framework.Communications.Cache; | ||
40 | 31 | ||
41 | namespace OpenSim.ApplicationPlugins.Rest.Inventory.Tests | 32 | namespace OpenSim.ApplicationPlugins.Rest.Inventory.Tests |
42 | { | 33 | { |