* Cleaning - attempting to get compiler warnings back down to zero.
parent
8b3cb93b49
commit
daf7b8ec76
|
@ -187,7 +187,7 @@ namespace OpenSim.Framework.Servers
|
|||
|
||||
responseString = ProcessXMLRPCMethod(methodName, request);
|
||||
}
|
||||
catch (Exception e)
|
||||
catch
|
||||
{
|
||||
//Console.WriteLine(e.ToString());
|
||||
}
|
||||
|
|
|
@ -446,15 +446,18 @@ namespace OpenSim
|
|||
break;
|
||||
case "users":
|
||||
ScenePresence TempAv;
|
||||
m_log.Error( String.Format("{0,-16}{1,-16}{2,-25}{3,-25}{4,-16}{5,-16}", "Firstname", "Lastname", "Agent ID", "Session ID", "Circuit", "IP"));
|
||||
/* foreach (libsecondlife.LLUUID UUID in LocalWorld.Entities.Keys)
|
||||
m_log.Error( String.Format("{0,-16}{1,-16}{2,-25}{3,-25}{4,-16}{5,-16}{6,-16}", "Firstname", "Lastname", "Agent ID", "Session ID", "Circuit", "IP","World"));
|
||||
for (int i = 0; i < m_localWorld.Count; i++)
|
||||
{
|
||||
foreach (libsecondlife.LLUUID UUID in ((Scene)m_localWorld[i]).Entities.Keys)
|
||||
{
|
||||
if (LocalWorld.Entities[UUID].ToString() == "OpenSim.world.Avatar")
|
||||
if (((Scene)m_localWorld[i]).Entities[UUID].ToString() == "OpenSim.world.Avatar")
|
||||
{
|
||||
TempAv = (OpenSim.world.Avatar)LocalWorld.Entities[UUID];
|
||||
m_log.Error( String.Format("{0,-16}{1,-16}{2,-25}{3,-25}{4,-16},{5,-16}", TempAv.firstname, TempAv.lastname, UUID, TempAv.ControllingClient.SessionID, TempAv.ControllingClient.CircuitCode, TempAv.ControllingClient.userEP.ToString()));
|
||||
TempAv = (ScenePresence)((Scene)m_localWorld[i]).Entities[UUID];
|
||||
m_log.Error(String.Format("{0,-16}{1,-16}{2,-25}{3,-25}{4,-16},{5,-16}{6,-16}", TempAv.firstname, TempAv.lastname, UUID, TempAv.ControllingClient.AgentId, "Unknown", "Unknown"), ((Scene)m_localWorld[i]).RegionInfo.RegionName);
|
||||
}
|
||||
}*/
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -378,7 +378,7 @@ namespace OpenSim.Region.ClientStack
|
|||
// Console.WriteLine(Pack.ToString());
|
||||
RequestTaskInventoryPacket requesttask = (RequestTaskInventoryPacket)Pack;
|
||||
ReplyTaskInventoryPacket replytask = new ReplyTaskInventoryPacket();
|
||||
bool foundent = false;
|
||||
//bool foundent = false;
|
||||
/* foreach (Entity ent in m_world.Entities.Values)
|
||||
{
|
||||
if (ent.localid == requesttask.InventoryData.LocalID)
|
||||
|
|
|
@ -40,7 +40,7 @@ namespace OpenSim.Region.Enviorment.Scripting
|
|||
return ".cs";
|
||||
}
|
||||
|
||||
private Dictionary<string,IScript> LoadDotNetScript(ICodeCompiler compiler, string filename)
|
||||
private Dictionary<string,IScript> LoadDotNetScript(CodeDomProvider compiler, string filename)
|
||||
{
|
||||
CompilerParameters compilerParams = new CompilerParameters();
|
||||
CompilerResults compilerResults;
|
||||
|
@ -96,7 +96,7 @@ namespace OpenSim.Region.Enviorment.Scripting
|
|||
public Dictionary<string,IScript> compile(string filename)
|
||||
{
|
||||
CSharpCodeProvider csharpProvider = new CSharpCodeProvider();
|
||||
return LoadDotNetScript(csharpProvider.CreateCompiler(), filename);
|
||||
return LoadDotNetScript(csharpProvider, filename);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -40,7 +40,7 @@ namespace OpenSim.Region.Enviorment.Scripting
|
|||
return ".js";
|
||||
}
|
||||
|
||||
private Dictionary<string, IScript> LoadDotNetScript(ICodeCompiler compiler, string filename)
|
||||
private Dictionary<string, IScript> LoadDotNetScript(CodeDomProvider compiler, string filename)
|
||||
{
|
||||
CompilerParameters compilerParams = new CompilerParameters();
|
||||
CompilerResults compilerResults;
|
||||
|
@ -96,7 +96,7 @@ namespace OpenSim.Region.Enviorment.Scripting
|
|||
public Dictionary<string, IScript> compile(string filename)
|
||||
{
|
||||
JScriptCodeProvider jscriptProvider = new JScriptCodeProvider();
|
||||
return LoadDotNetScript(jscriptProvider.CreateCompiler(), filename);
|
||||
return LoadDotNetScript(jscriptProvider, filename);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -63,7 +63,7 @@ namespace OpenSim.Region.Terrain
|
|||
{
|
||||
public Dictionary<string, ITerrainFilter> filters = new Dictionary<string, ITerrainFilter>();
|
||||
|
||||
private void LoadFilter(ICodeCompiler compiler, string filename)
|
||||
private void LoadFilter(CodeDomProvider compiler, string filename)
|
||||
{
|
||||
CompilerParameters compilerParams = new CompilerParameters();
|
||||
CompilerResults compilerResults;
|
||||
|
@ -114,13 +114,13 @@ namespace OpenSim.Region.Terrain
|
|||
public void LoadFilterCSharp(string filename)
|
||||
{
|
||||
CSharpCodeProvider compiler = new CSharpCodeProvider();
|
||||
LoadFilter(compiler.CreateCompiler(), filename);
|
||||
LoadFilter(compiler, filename);
|
||||
}
|
||||
|
||||
public void LoadFilterJScript(string filename)
|
||||
{
|
||||
JScriptCodeProvider compiler = new JScriptCodeProvider();
|
||||
LoadFilter(compiler.CreateCompiler(), filename);
|
||||
LoadFilter(compiler, filename);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue