diff options
author | Jeff Ames | 2008-03-22 23:52:48 +0000 |
---|---|---|
committer | Jeff Ames | 2008-03-22 23:52:48 +0000 |
commit | 9a2b289e328e336f349974302df41b34c92893c3 (patch) | |
tree | c44b4ae8c862446e3f04df8237563f544ed96063 /OpenSim/TestSuite | |
parent | Update svn properties. (diff) | |
download | opensim-SC_OLD-9a2b289e328e336f349974302df41b34c92893c3.zip opensim-SC_OLD-9a2b289e328e336f349974302df41b34c92893c3.tar.gz opensim-SC_OLD-9a2b289e328e336f349974302df41b34c92893c3.tar.bz2 opensim-SC_OLD-9a2b289e328e336f349974302df41b34c92893c3.tar.xz |
Fix compiler warnings in pCampBot, TestSuite, and ScriptEngine/RemoteServer. Thanks daTwitch!
Diffstat (limited to 'OpenSim/TestSuite')
-rw-r--r-- | OpenSim/TestSuite/BotManager.cs | 20 | ||||
-rw-r--r-- | OpenSim/TestSuite/Main.cs | 6 | ||||
-rw-r--r-- | OpenSim/TestSuite/PhysicsBot.cs | 3 |
3 files changed, 14 insertions, 15 deletions
diff --git a/OpenSim/TestSuite/BotManager.cs b/OpenSim/TestSuite/BotManager.cs index 93b8fed..c867cae 100644 --- a/OpenSim/TestSuite/BotManager.cs +++ b/OpenSim/TestSuite/BotManager.cs | |||
@@ -186,16 +186,16 @@ namespace OpenSim.TestSuite | |||
186 | /// <param name="commandParams"></param> | 186 | /// <param name="commandParams"></param> |
187 | /// <param name="pos"></param> | 187 | /// <param name="pos"></param> |
188 | /// <returns></returns> | 188 | /// <returns></returns> |
189 | private string CombineParams(string[] commandParams, int pos) | 189 | // TODO: unused: private string CombineParams(string[] commandParams, int pos) |
190 | { | 190 | // TODO: unused: { |
191 | string result = String.Empty; | 191 | // TODO: unused: string result = String.Empty; |
192 | for (int i = pos; i < commandParams.Length; i++) | 192 | // TODO: unused: for (int i = pos; i < commandParams.Length; i++) |
193 | { | 193 | // TODO: unused: { |
194 | result += commandParams[i] + " "; | 194 | // TODO: unused: result += commandParams[i] + " "; |
195 | } | 195 | // TODO: unused: } |
196 | result = result.TrimEnd(' '); | 196 | // TODO: unused: result = result.TrimEnd(' '); |
197 | return result; | 197 | // TODO: unused: return result; |
198 | } | 198 | // TODO: unused: } |
199 | 199 | ||
200 | /// <summary> | 200 | /// <summary> |
201 | /// Command runnint tool.. Currently use it to add bots, shutdown and (dangerous)Forcequit | 201 | /// Command runnint tool.. Currently use it to add bots, shutdown and (dangerous)Forcequit |
diff --git a/OpenSim/TestSuite/Main.cs b/OpenSim/TestSuite/Main.cs index a31cf01..ff4965c 100644 --- a/OpenSim/TestSuite/Main.cs +++ b/OpenSim/TestSuite/Main.cs | |||
@@ -63,7 +63,7 @@ namespace OpenSim.TestSuite | |||
63 | if (config.Get("help") != null || config.Get("loginuri") == null) { | 63 | if (config.Get("help") != null || config.Get("loginuri") == null) { |
64 | Help(); | 64 | Help(); |
65 | } else { | 65 | } else { |
66 | int botcount = config.GetInt("botcount", 1); | 66 | // TODO: unused: int botcount = config.GetInt("botcount", 1); |
67 | 67 | ||
68 | // BotManager bm = new BotManager(); | 68 | // BotManager bm = new BotManager(); |
69 | 69 | ||
@@ -76,7 +76,7 @@ namespace OpenSim.TestSuite | |||
76 | //Set up our nifty config.. thanks to nini | 76 | //Set up our nifty config.. thanks to nini |
77 | ArgvConfigSource cs = new ArgvConfigSource(args); | 77 | ArgvConfigSource cs = new ArgvConfigSource(args); |
78 | 78 | ||
79 | cs.AddSwitch("Startup", "botcount","n"); | 79 | // TODO: unused: cs.AddSwitch("Startup", "botcount","n"); |
80 | cs.AddSwitch("Startup", "loginuri","l"); | 80 | cs.AddSwitch("Startup", "loginuri","l"); |
81 | cs.AddSwitch("Startup", "firstname"); | 81 | cs.AddSwitch("Startup", "firstname"); |
82 | cs.AddSwitch("Startup", "lastname"); | 82 | cs.AddSwitch("Startup", "lastname"); |
@@ -93,7 +93,7 @@ namespace OpenSim.TestSuite | |||
93 | "usage: pCampBot <-loginuri loginuri> [OPTIONS]\n" + | 93 | "usage: pCampBot <-loginuri loginuri> [OPTIONS]\n" + |
94 | "Spawns a set of bots to test an OpenSim region\n\n" + | 94 | "Spawns a set of bots to test an OpenSim region\n\n" + |
95 | " -l, -loginuri loginuri for sim to log into (required)\n" + | 95 | " -l, -loginuri loginuri for sim to log into (required)\n" + |
96 | " -n, -botcount number of bots to start (default: 1)\n" + | 96 | // TODO: unused: " -n, -botcount number of bots to start (default: 1)\n" + |
97 | " -firstname first name for the bot(s) (default: random string)\n" + | 97 | " -firstname first name for the bot(s) (default: random string)\n" + |
98 | " -lastname lastname for the bot(s) (default: random string)\n" + | 98 | " -lastname lastname for the bot(s) (default: random string)\n" + |
99 | " -password password for the bots(s) (default: random string)\n" + | 99 | " -password password for the bots(s) (default: random string)\n" + |
diff --git a/OpenSim/TestSuite/PhysicsBot.cs b/OpenSim/TestSuite/PhysicsBot.cs index fd9b73a..792465f 100644 --- a/OpenSim/TestSuite/PhysicsBot.cs +++ b/OpenSim/TestSuite/PhysicsBot.cs | |||
@@ -57,7 +57,6 @@ namespace OpenSim.TestSuite | |||
57 | 57 | ||
58 | protected Random somthing = new Random(System.Environment.TickCount);// We do stuff randomly here | 58 | protected Random somthing = new Random(System.Environment.TickCount);// We do stuff randomly here |
59 | 59 | ||
60 | private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); | ||
61 | 60 | ||
62 | //New instance of a SecondLife client | 61 | //New instance of a SecondLife client |
63 | public SecondLife client = new SecondLife(); | 62 | public SecondLife client = new SecondLife(); |
@@ -92,7 +91,7 @@ namespace OpenSim.TestSuite | |||
92 | client.Self.Movement.AlwaysRun = false; | 91 | client.Self.Movement.AlwaysRun = false; |
93 | } | 92 | } |
94 | 93 | ||
95 | LLVector3 pos = client.Self.SimPosition; | 94 | // TODO: unused: LLVector3 pos = client.Self.SimPosition; |
96 | LLVector3 newpos = new LLVector3(somthing.Next(255), somthing.Next(255), somthing.Next(255)); | 95 | LLVector3 newpos = new LLVector3(somthing.Next(255), somthing.Next(255), somthing.Next(255)); |
97 | client.Self.Movement.TurnToward(newpos); | 96 | client.Self.Movement.TurnToward(newpos); |
98 | 97 | ||