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]
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;
TRPC_Remote RPC;
int myScriptServerID;

View File

@ -186,16 +186,16 @@ namespace OpenSim.TestSuite
/// <param name="commandParams"></param>
/// <param name="pos"></param>
/// <returns></returns>
private string CombineParams(string[] commandParams, int pos)
{
string result = String.Empty;
for (int i = pos; i < commandParams.Length; i++)
{
result += commandParams[i] + " ";
}
result = result.TrimEnd(' ');
return result;
}
// TODO: unused: private string CombineParams(string[] commandParams, int pos)
// TODO: unused: {
// TODO: unused: string result = String.Empty;
// TODO: unused: for (int i = pos; i < commandParams.Length; i++)
// TODO: unused: {
// TODO: unused: result += commandParams[i] + " ";
// TODO: unused: }
// TODO: unused: result = result.TrimEnd(' ');
// TODO: unused: return result;
// TODO: unused: }
/// <summary>
/// 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) {
Help();
} else {
int botcount = config.GetInt("botcount", 1);
// TODO: unused: int botcount = config.GetInt("botcount", 1);
// BotManager bm = new BotManager();
@ -76,7 +76,7 @@ namespace OpenSim.TestSuite
//Set up our nifty config.. thanks to nini
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", "firstname");
cs.AddSwitch("Startup", "lastname");
@ -93,7 +93,7 @@ namespace OpenSim.TestSuite
"usage: pCampBot <-loginuri loginuri> [OPTIONS]\n" +
"Spawns a set of bots to test an OpenSim region\n\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" +
" -lastname lastname for the bot(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
private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
//New instance of a SecondLife client
public SecondLife client = new SecondLife();
@ -92,7 +91,7 @@ namespace OpenSim.TestSuite
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));
client.Self.Movement.TurnToward(newpos);

View File

@ -185,16 +185,16 @@ namespace pCampBot
/// <param name="commandParams"></param>
/// <param name="pos"></param>
/// <returns></returns>
private string CombineParams(string[] commandParams, int pos)
{
string result = String.Empty;
for (int i = pos; i < commandParams.Length; i++)
{
result += commandParams[i] + " ";
}
result = result.TrimEnd(' ');
return result;
}
// TODO: unused: private string CombineParams(string[] commandParams, int pos)
// TODO: unused: {
// TODO: unused: string result = String.Empty;
// TODO: unused: for (int i = pos; i < commandParams.Length; i++)
// TODO: unused: {
// TODO: unused: result += commandParams[i] + " ";
// TODO: unused: }
// TODO: unused: result = result.TrimEnd(' ');
// TODO: unused: return result;
// TODO: unused: }
/// <summary>
/// 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;
}
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));
client.Self.Movement.TurnToward(newpos);