aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Application/OpenSim.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Application/OpenSim.cs')
-rw-r--r--OpenSim/Region/Application/OpenSim.cs36
1 files changed, 0 insertions, 36 deletions
diff --git a/OpenSim/Region/Application/OpenSim.cs b/OpenSim/Region/Application/OpenSim.cs
index e654cf7..17b2167 100644
--- a/OpenSim/Region/Application/OpenSim.cs
+++ b/OpenSim/Region/Application/OpenSim.cs
@@ -467,35 +467,6 @@ namespace OpenSim
467 } 467 }
468 468
469 /// <summary> 469 /// <summary>
470 /// Run an optional startup list of commands
471 /// </summary>
472 /// <param name="fileName"></param>
473 private void RunCommandScript(string fileName)
474 {
475 if (File.Exists(fileName))
476 {
477 m_log.Info("[COMMANDFILE]: Running " + fileName);
478
479 using (StreamReader readFile = File.OpenText(fileName))
480 {
481 string currentCommand;
482 while ((currentCommand = readFile.ReadLine()) != null)
483 {
484 currentCommand = currentCommand.Trim();
485 if (!(currentCommand == ""
486 || currentCommand.StartsWith(";")
487 || currentCommand.StartsWith("//")
488 || currentCommand.StartsWith("#")))
489 {
490 m_log.Info("[COMMANDFILE]: Running '" + currentCommand + "'");
491 m_console.RunCommand(currentCommand);
492 }
493 }
494 }
495 }
496 }
497
498 /// <summary>
499 /// Opens a file and uses it as input to the console command parser. 470 /// Opens a file and uses it as input to the console command parser.
500 /// </summary> 471 /// </summary>
501 /// <param name="fileName">name of file to use as input to the console</param> 472 /// <param name="fileName">name of file to use as input to the console</param>
@@ -650,13 +621,6 @@ namespace OpenSim
650 621
651 switch (command) 622 switch (command)
652 { 623 {
653 case "command-script":
654 if (cmdparams.Length > 0)
655 {
656 RunCommandScript(cmdparams[0]);
657 }
658 break;
659
660 case "backup": 624 case "backup":
661 MainConsole.Instance.Output("Triggering save of pending object updates to persistent store"); 625 MainConsole.Instance.Output("Triggering save of pending object updates to persistent store");
662 SceneManager.BackupCurrentScene(); 626 SceneManager.BackupCurrentScene();