* minor: remove mono compiler warnings

0.6.0-stable
Justin Clarke Casey 2008-10-27 20:16:42 +00:00
parent 6ec9c2d706
commit 754f6ba2a2
2 changed files with 10 additions and 11 deletions

View File

@ -428,15 +428,15 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Concierge
} }
} }
private static void checkIntegerParams(XmlRpcRequest request, string[] param) // private static void checkIntegerParams(XmlRpcRequest request, string[] param)
{ // {
Hashtable requestData = (Hashtable) request.Params[0]; // Hashtable requestData = (Hashtable) request.Params[0];
foreach (string p in param) // foreach (string p in param)
{ // {
if (!requestData.Contains(p)) // if (!requestData.Contains(p))
throw new Exception(String.Format("missing integer parameter {0}", p)); // throw new Exception(String.Format("missing integer parameter {0}", p));
} // }
} // }
public XmlRpcResponse XmlRpcUpdateWelcomeMethod(XmlRpcRequest request) public XmlRpcResponse XmlRpcUpdateWelcomeMethod(XmlRpcRequest request)
{ {

View File

@ -976,7 +976,7 @@ namespace PrimMesher
this.faceNormal.Y = -this.faceNormal.Y; this.faceNormal.Y = -this.faceNormal.Y;
this.faceNormal.Z = -this.faceNormal.Z; this.faceNormal.Z = -this.faceNormal.Z;
int numUs = this.us.Count; //int numUs = this.us.Count;
//for (int i = 0; i < numUs; i++) //for (int i = 0; i < numUs; i++)
// this.us[i] // this.us[i]
@ -1930,7 +1930,6 @@ namespace PrimMesher
public Coord SurfaceNormal(int faceIndex) public Coord SurfaceNormal(int faceIndex)
{ {
int numFaces = faces.Count;
if (faceIndex < 0 || faceIndex >= faces.Count) if (faceIndex < 0 || faceIndex >= faces.Count)
throw new Exception("faceIndex out of range"); throw new Exception("faceIndex out of range");