* Remove compiler warnings

* These have actually been removed from HGHyperLink.TryUnlinkRegion, because some parameters were parsed but never used.
* This might be a situation where the warnings have shown up an oversight
0.6.5-rc1
Justin Clarke Casey 2009-03-19 21:16:02 +00:00
parent 8f1844665b
commit 4571a8b3fb
1 changed files with 12 additions and 12 deletions

View File

@ -155,25 +155,25 @@ namespace OpenSim.Region.Framework.Scenes.Hypergrid
if (mapName.Contains(":"))
{
string host = "127.0.0.1";
string portstr;
string regionName = "";
//string portstr;
//string regionName = "";
uint port = 9000;
string[] parts = mapName.Split(new char[] { ':' });
if (parts.Length >= 1)
{
host = parts[0];
}
if (parts.Length >= 2)
{
portstr = parts[1];
if (!UInt32.TryParse(portstr, out port))
regionName = parts[1];
}
// if (parts.Length >= 2)
// {
// portstr = parts[1];
// if (!UInt32.TryParse(portstr, out port))
// regionName = parts[1];
// }
// always take the last one
if (parts.Length >= 3)
{
regionName = parts[2];
}
// if (parts.Length >= 3)
// {
// regionName = parts[2];
// }
regInfo = m_scene.CommsManager.GridService.RequestNeighbourInfo(host, port);
}
else