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"]; data.destinationServerURI = args["destination_serveruri"];
} }
catch (InvalidCastException e) catch (InvalidCastException)
{ {
m_log.ErrorFormat("[HOME AGENT HANDLER]: Bad cast in UnpackData"); 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(); XmlRpcResponse response = new XmlRpcResponse();
response.Value = hash; response.Value = hash;
return response; return response;
} }
/// <summary> /// <summary>
@ -471,9 +470,7 @@ namespace OpenSim.Server.Handlers.Hypergrid
//string portstr = (string)requestData["port"]; //string portstr = (string)requestData["port"];
if (requestData.ContainsKey("first") && requestData.ContainsKey("last")) if (requestData.ContainsKey("first") && requestData.ContainsKey("last"))
{ {
UUID userID = UUID.Zero;
string first = (string)requestData["first"]; string first = (string)requestData["first"];
string last = (string)requestData["last"]; string last = (string)requestData["last"];
UUID uuid = m_HomeUsersService.GetUUID(first, last); UUID uuid = m_HomeUsersService.GetUUID(first, last);
hash["UUID"] = uuid.ToString(); hash["UUID"] = uuid.ToString();
@ -482,7 +479,6 @@ namespace OpenSim.Server.Handlers.Hypergrid
XmlRpcResponse response = new XmlRpcResponse(); XmlRpcResponse response = new XmlRpcResponse();
response.Value = hash; response.Value = hash;
return response; return response;
} }
} }
} }

View File

@ -39,8 +39,7 @@ namespace OpenSim.Server.Handlers.Profiles
{ {
public class UserProfilesConnector: ServiceConnector 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 // Our Local Module
public IUserProfilesService ServiceModule public IUserProfilesService ServiceModule
@ -110,5 +109,4 @@ namespace OpenSim.Server.Handlers.Profiles
Server.AddJsonRPCHandler("user_data_update", handler.UpdateUserAppData); Server.AddJsonRPCHandler("user_data_update", handler.UpdateUserAppData);
} }
} }
} }