Fix compiler warnings in pCampBot, TestSuite, and ScriptEngine/RemoteServer. Thanks daTwitch!

0.6.0-stable
Jeff Ames 2008-03-22 23:52:48 +00:00
parent 37121bcf72
commit 9a2b289e32
6 changed files with 26 additions and 27 deletions

View File

@ -41,7 +41,7 @@ namespace OpenSim.Region.ScriptEngine.RemoteServer
[Serializable] [Serializable]
internal class EventManager internal class EventManager
{ {
System.Collections.Generic.Dictionary<uint, ScriptServerInterfaces.ServerRemotingObject> remoteScript = new System.Collections.Generic.Dictionary<uint, ScriptServerInterfaces.ServerRemotingObject>(); // TODO: unused: System.Collections.Generic.Dictionary<uint, ScriptServerInterfaces.ServerRemotingObject> remoteScript = new System.Collections.Generic.Dictionary<uint, ScriptServerInterfaces.ServerRemotingObject>();
TCPClient m_TCPClient; TCPClient m_TCPClient;
TRPC_Remote RPC; TRPC_Remote RPC;
int myScriptServerID; int myScriptServerID;

View File

@ -186,16 +186,16 @@ namespace OpenSim.TestSuite
/// <param name="commandParams"></param> /// <param name="commandParams"></param>
/// <param name="pos"></param> /// <param name="pos"></param>
/// <returns></returns> /// <returns></returns>
private string CombineParams(string[] commandParams, int pos) // TODO: unused: private string CombineParams(string[] commandParams, int pos)
{ // TODO: unused: {
string result = String.Empty; // TODO: unused: string result = String.Empty;
for (int i = pos; i < commandParams.Length; i++) // TODO: unused: for (int i = pos; i < commandParams.Length; i++)
{ // TODO: unused: {
result += commandParams[i] + " "; // TODO: unused: result += commandParams[i] + " ";
} // TODO: unused: }
result = result.TrimEnd(' '); // TODO: unused: result = result.TrimEnd(' ');
return result; // TODO: unused: return result;
} // TODO: unused: }
/// <summary> /// <summary>
/// Command runnint tool.. Currently use it to add bots, shutdown and (dangerous)Forcequit /// Command runnint tool.. Currently use it to add bots, shutdown and (dangerous)Forcequit

View File

@ -63,7 +63,7 @@ namespace OpenSim.TestSuite
if (config.Get("help") != null || config.Get("loginuri") == null) { if (config.Get("help") != null || config.Get("loginuri") == null) {
Help(); Help();
} else { } else {
int botcount = config.GetInt("botcount", 1); // TODO: unused: int botcount = config.GetInt("botcount", 1);
// BotManager bm = new BotManager(); // BotManager bm = new BotManager();
@ -76,7 +76,7 @@ namespace OpenSim.TestSuite
//Set up our nifty config.. thanks to nini //Set up our nifty config.. thanks to nini
ArgvConfigSource cs = new ArgvConfigSource(args); ArgvConfigSource cs = new ArgvConfigSource(args);
cs.AddSwitch("Startup", "botcount","n"); // TODO: unused: cs.AddSwitch("Startup", "botcount","n");
cs.AddSwitch("Startup", "loginuri","l"); cs.AddSwitch("Startup", "loginuri","l");
cs.AddSwitch("Startup", "firstname"); cs.AddSwitch("Startup", "firstname");
cs.AddSwitch("Startup", "lastname"); cs.AddSwitch("Startup", "lastname");
@ -93,7 +93,7 @@ namespace OpenSim.TestSuite
"usage: pCampBot <-loginuri loginuri> [OPTIONS]\n" + "usage: pCampBot <-loginuri loginuri> [OPTIONS]\n" +
"Spawns a set of bots to test an OpenSim region\n\n" + "Spawns a set of bots to test an OpenSim region\n\n" +
" -l, -loginuri loginuri for sim to log into (required)\n" + " -l, -loginuri loginuri for sim to log into (required)\n" +
" -n, -botcount number of bots to start (default: 1)\n" + // TODO: unused: " -n, -botcount number of bots to start (default: 1)\n" +
" -firstname first name for the bot(s) (default: random string)\n" + " -firstname first name for the bot(s) (default: random string)\n" +
" -lastname lastname for the bot(s) (default: random string)\n" + " -lastname lastname for the bot(s) (default: random string)\n" +
" -password password for the bots(s) (default: random string)\n" + " -password password for the bots(s) (default: random string)\n" +

View File

@ -57,7 +57,6 @@ namespace OpenSim.TestSuite
protected Random somthing = new Random(System.Environment.TickCount);// We do stuff randomly here protected Random somthing = new Random(System.Environment.TickCount);// We do stuff randomly here
private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
//New instance of a SecondLife client //New instance of a SecondLife client
public SecondLife client = new SecondLife(); public SecondLife client = new SecondLife();
@ -92,7 +91,7 @@ namespace OpenSim.TestSuite
client.Self.Movement.AlwaysRun = false; client.Self.Movement.AlwaysRun = false;
} }
LLVector3 pos = client.Self.SimPosition; // TODO: unused: LLVector3 pos = client.Self.SimPosition;
LLVector3 newpos = new LLVector3(somthing.Next(255), somthing.Next(255), somthing.Next(255)); LLVector3 newpos = new LLVector3(somthing.Next(255), somthing.Next(255), somthing.Next(255));
client.Self.Movement.TurnToward(newpos); client.Self.Movement.TurnToward(newpos);

View File

@ -185,16 +185,16 @@ namespace pCampBot
/// <param name="commandParams"></param> /// <param name="commandParams"></param>
/// <param name="pos"></param> /// <param name="pos"></param>
/// <returns></returns> /// <returns></returns>
private string CombineParams(string[] commandParams, int pos) // TODO: unused: private string CombineParams(string[] commandParams, int pos)
{ // TODO: unused: {
string result = String.Empty; // TODO: unused: string result = String.Empty;
for (int i = pos; i < commandParams.Length; i++) // TODO: unused: for (int i = pos; i < commandParams.Length; i++)
{ // TODO: unused: {
result += commandParams[i] + " "; // TODO: unused: result += commandParams[i] + " ";
} // TODO: unused: }
result = result.TrimEnd(' '); // TODO: unused: result = result.TrimEnd(' ');
return result; // TODO: unused: return result;
} // TODO: unused: }
/// <summary> /// <summary>
/// Command runnint tool.. Currently use it to add bots, shutdown and (dangerous)Forcequit /// Command runnint tool.. Currently use it to add bots, shutdown and (dangerous)Forcequit

View File

@ -89,7 +89,7 @@ namespace pCampBot
client.Self.Movement.AlwaysRun = false; client.Self.Movement.AlwaysRun = false;
} }
LLVector3 pos = client.Self.SimPosition; // TODO: unused: LLVector3 pos = client.Self.SimPosition;
LLVector3 newpos = new LLVector3(somthing.Next(255), somthing.Next(255), somthing.Next(255)); LLVector3 newpos = new LLVector3(somthing.Next(255), somthing.Next(255), somthing.Next(255));
client.Self.Movement.TurnToward(newpos); client.Self.Movement.TurnToward(newpos);