From 0b2bc26bfea8e4e32c77e20b043fd82c80edfc5e Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Mon, 29 Sep 2008 15:33:58 +0000 Subject: * minor: remove warnings --- OpenSim/Framework/Servers/BaseHttpServer.cs | 13 +++++++------ .../Inventory/Archiver/InventoryArchiveReadRequest.cs | 6 +++--- 2 files changed, 10 insertions(+), 9 deletions(-) (limited to 'OpenSim') diff --git a/OpenSim/Framework/Servers/BaseHttpServer.cs b/OpenSim/Framework/Servers/BaseHttpServer.cs index 504ca8b..e44a301 100644 --- a/OpenSim/Framework/Servers/BaseHttpServer.cs +++ b/OpenSim/Framework/Servers/BaseHttpServer.cs @@ -377,7 +377,7 @@ namespace OpenSim.Framework.Servers Hashtable keysvals = new Hashtable(); Hashtable headervals = new Hashtable(); - string host = String.Empty; + //string host = String.Empty; string[] querystringkeys = request.QueryString.AllKeys; string[] rHeaders = request.Headers.AllKeys; @@ -394,15 +394,16 @@ namespace OpenSim.Framework.Servers headervals[headername] = request.Headers[headername]; } - if (headervals.Contains("Host")) - { - host = (string)headervals["Host"]; - } +// if (headervals.Contains("Host")) +// { +// host = (string)headervals["Host"]; +// } + keysvals.Add("requestbody",requestBody); if (keysvals.Contains("method")) { //m_log.Warn("[HTTP]: Contains Method"); - string method = (string)keysvals["method"]; + //string method = (string)keysvals["method"]; //m_log.Warn("[HTTP]: " + requestBody); } diff --git a/OpenSim/Region/Environment/Modules/Avatar/Inventory/Archiver/InventoryArchiveReadRequest.cs b/OpenSim/Region/Environment/Modules/Avatar/Inventory/Archiver/InventoryArchiveReadRequest.cs index f2f8cd2..91763a7 100644 --- a/OpenSim/Region/Environment/Modules/Avatar/Inventory/Archiver/InventoryArchiveReadRequest.cs +++ b/OpenSim/Region/Environment/Modules/Avatar/Inventory/Archiver/InventoryArchiveReadRequest.cs @@ -56,7 +56,7 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Inventory.Archiver public InventoryArchiveReadRequest(Scene currentScene, CommunicationsManager commsManager) { - List serialisedObjects = new List(); + //List serialisedObjects = new List(); scene = currentScene; this.commsManager = commsManager; } @@ -150,7 +150,7 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Inventory.Archiver string firstName = cmdparams[0]; string lastName = cmdparams[1]; - string invPath = cmdparams[2]; + //string invPath = cmdparams[2]; loadPath = (cmdparams.Length > 3 ? cmdparams[3] : "inventory.tar.gz"); archive @@ -192,7 +192,7 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Inventory.Archiver /// true if asset was successfully loaded, false otherwise private bool LoadAsset(string assetPath, byte[] data) { - IRegionSerialiser serialiser = scene.RequestModuleInterface(); + //IRegionSerialiser serialiser = scene.RequestModuleInterface(); // Right now we're nastily obtaining the UUID from the filename string filename = assetPath.Remove(0, ArchiveConstants.ASSETS_PATH.Length); int i = filename.LastIndexOf(ArchiveConstants.ASSET_EXTENSION_SEPARATOR); -- cgit v1.1