Remove some mono compiler warnings from OpenSim/Server/Handlers

0.7.6-extended
Justin Clark-Casey (justincc) 2013-08-17 01:08:19 +01:00
parent f5dbfe99b1
commit b3052c425e
3 changed files with 4 additions and 10 deletions

View File

@ -85,7 +85,7 @@ namespace OpenSim.Server.Handlers.Hypergrid
data.destinationServerURI = args["destination_serveruri"];
}
catch (InvalidCastException e)
catch (InvalidCastException)
{
m_log.ErrorFormat("[HOME AGENT HANDLER]: Bad cast in UnpackData");
}

View File

@ -453,7 +453,6 @@ namespace OpenSim.Server.Handlers.Hypergrid
XmlRpcResponse response = new XmlRpcResponse();
response.Value = hash;
return response;
}
/// <summary>
@ -471,9 +470,7 @@ namespace OpenSim.Server.Handlers.Hypergrid
//string portstr = (string)requestData["port"];
if (requestData.ContainsKey("first") && requestData.ContainsKey("last"))
{
UUID userID = UUID.Zero;
string first = (string)requestData["first"];
string last = (string)requestData["last"];
UUID uuid = m_HomeUsersService.GetUUID(first, last);
hash["UUID"] = uuid.ToString();
@ -482,7 +479,6 @@ namespace OpenSim.Server.Handlers.Hypergrid
XmlRpcResponse response = new XmlRpcResponse();
response.Value = hash;
return response;
}
}
}

View File

@ -39,8 +39,7 @@ namespace OpenSim.Server.Handlers.Profiles
{
public class UserProfilesConnector: ServiceConnector
{
static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
// static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
// Our Local Module
public IUserProfilesService ServiceModule
@ -111,4 +110,3 @@ namespace OpenSim.Server.Handlers.Profiles
}
}
}