* minor: remove warnings

0.6.0-stable
Justin Clarke Casey 2008-09-29 15:33:58 +00:00
parent 4daaac662f
commit 0b2bc26bfe
2 changed files with 10 additions and 9 deletions

View File

@ -377,7 +377,7 @@ namespace OpenSim.Framework.Servers
Hashtable keysvals = new Hashtable(); Hashtable keysvals = new Hashtable();
Hashtable headervals = new Hashtable(); Hashtable headervals = new Hashtable();
string host = String.Empty; //string host = String.Empty;
string[] querystringkeys = request.QueryString.AllKeys; string[] querystringkeys = request.QueryString.AllKeys;
string[] rHeaders = request.Headers.AllKeys; string[] rHeaders = request.Headers.AllKeys;
@ -394,15 +394,16 @@ namespace OpenSim.Framework.Servers
headervals[headername] = request.Headers[headername]; headervals[headername] = request.Headers[headername];
} }
if (headervals.Contains("Host")) // if (headervals.Contains("Host"))
{ // {
host = (string)headervals["Host"]; // host = (string)headervals["Host"];
} // }
keysvals.Add("requestbody",requestBody); keysvals.Add("requestbody",requestBody);
if (keysvals.Contains("method")) if (keysvals.Contains("method"))
{ {
//m_log.Warn("[HTTP]: Contains Method"); //m_log.Warn("[HTTP]: Contains Method");
string method = (string)keysvals["method"]; //string method = (string)keysvals["method"];
//m_log.Warn("[HTTP]: " + requestBody); //m_log.Warn("[HTTP]: " + requestBody);
} }

View File

@ -56,7 +56,7 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Inventory.Archiver
public InventoryArchiveReadRequest(Scene currentScene, CommunicationsManager commsManager) public InventoryArchiveReadRequest(Scene currentScene, CommunicationsManager commsManager)
{ {
List<string> serialisedObjects = new List<string>(); //List<string> serialisedObjects = new List<string>();
scene = currentScene; scene = currentScene;
this.commsManager = commsManager; this.commsManager = commsManager;
} }
@ -150,7 +150,7 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Inventory.Archiver
string firstName = cmdparams[0]; string firstName = cmdparams[0];
string lastName = cmdparams[1]; string lastName = cmdparams[1];
string invPath = cmdparams[2]; //string invPath = cmdparams[2];
loadPath = (cmdparams.Length > 3 ? cmdparams[3] : "inventory.tar.gz"); loadPath = (cmdparams.Length > 3 ? cmdparams[3] : "inventory.tar.gz");
archive archive
@ -192,7 +192,7 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Inventory.Archiver
/// <returns>true if asset was successfully loaded, false otherwise</returns> /// <returns>true if asset was successfully loaded, false otherwise</returns>
private bool LoadAsset(string assetPath, byte[] data) private bool LoadAsset(string assetPath, byte[] data)
{ {
IRegionSerialiser serialiser = scene.RequestModuleInterface<IRegionSerialiser>(); //IRegionSerialiser serialiser = scene.RequestModuleInterface<IRegionSerialiser>();
// Right now we're nastily obtaining the UUID from the filename // Right now we're nastily obtaining the UUID from the filename
string filename = assetPath.Remove(0, ArchiveConstants.ASSETS_PATH.Length); string filename = assetPath.Remove(0, ArchiveConstants.ASSETS_PATH.Length);
int i = filename.LastIndexOf(ArchiveConstants.ASSET_EXTENSION_SEPARATOR); int i = filename.LastIndexOf(ArchiveConstants.ASSET_EXTENSION_SEPARATOR);