mirror of
https://github.com/opensim/opensim.git
synced 2026-08-08 10:15:33 +08:00
very useless changes
This commit is contained in:
@@ -142,6 +142,7 @@ namespace OpenSim.Framework
|
||||
sb.AppendASCII($"{kvp.Key} {kvp.Value.Value} {kvp.Value.Key}\n");
|
||||
return OSUTF8Cached.GetArrayAndRelease(sb);
|
||||
}
|
||||
|
||||
/*
|
||||
public bool Validate(AnimationSetValidator val)
|
||||
{
|
||||
|
||||
@@ -216,7 +216,6 @@ namespace OpenSim.Framework
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -312,7 +311,6 @@ namespace OpenSim.Framework
|
||||
return controldata;
|
||||
}
|
||||
|
||||
|
||||
public void UnpackUpdateMessage(OSDMap args)
|
||||
{
|
||||
OSD osdtmp;
|
||||
|
||||
@@ -320,9 +320,7 @@ namespace OpenSim.Framework
|
||||
get
|
||||
{
|
||||
PrimitiveBaseShape boxShape = CreateBox();
|
||||
|
||||
boxShape.SetScale(0.5f);
|
||||
|
||||
return boxShape;
|
||||
}
|
||||
}
|
||||
@@ -1541,6 +1539,7 @@ namespace OpenSim.Framework
|
||||
|
||||
if (data is null || data.Length < 1)
|
||||
return;
|
||||
|
||||
int nentries = data[0];
|
||||
if (nentries > 128)
|
||||
return;
|
||||
|
||||
@@ -402,6 +402,5 @@ namespace OpenSim.Framework
|
||||
client?.Dispose();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -179,7 +179,7 @@ namespace OpenSim.Framework.Servers
|
||||
{
|
||||
m_log.Info("[STARTUP]: Beginning startup processing");
|
||||
|
||||
m_log.Info("[STARTUP]: version: " + m_version);
|
||||
m_log.Info("[STARTUP]: Version: " + m_version);
|
||||
m_log.Info($"[STARTUP]: Operating system version: {Environment.OSVersion}, .NET platform {Util.RuntimePlatformStr}, Runtime {Environment.Version}");
|
||||
m_log.Info($"[STARTUP]: Processor Architecture: {RuntimeInformation.ProcessArchitecture}({(BitConverter.IsLittleEndian ? "le" : "be")} {(Environment.Is64BitProcess ? "64" : "32")}bit)");
|
||||
try
|
||||
|
||||
@@ -219,6 +219,7 @@ namespace OSHttpServer
|
||||
/// </remarks>
|
||||
public virtual void Cleanup()
|
||||
{
|
||||
|
||||
if (StreamPassedOff)
|
||||
return;
|
||||
|
||||
|
||||
@@ -63,7 +63,7 @@ namespace OpenSim.Framework.Servers
|
||||
protected DateTime m_startuptime;
|
||||
protected string m_startupDirectory = Environment.CurrentDirectory;
|
||||
|
||||
protected string m_pidFile = String.Empty;
|
||||
protected string m_pidFile = string.Empty;
|
||||
|
||||
protected ServerStatsCollector m_serverStatsCollector;
|
||||
|
||||
@@ -90,7 +90,7 @@ namespace OpenSim.Framework.Servers
|
||||
|
||||
using (FileStream fs = File.Create(path))
|
||||
{
|
||||
Byte[] buf = Encoding.ASCII.GetBytes(pidstring);
|
||||
byte[] buf = Encoding.ASCII.GetBytes(pidstring);
|
||||
fs.Write(buf, 0, buf.Length);
|
||||
}
|
||||
|
||||
@@ -116,8 +116,7 @@ namespace OpenSim.Framework.Servers
|
||||
{
|
||||
m_log.Error($"[SERVER BASE]: Error whilst removing {m_pidFile}", e);
|
||||
}
|
||||
|
||||
m_pidFile = String.Empty;
|
||||
m_pidFile = string.Empty;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -78,7 +78,6 @@ namespace OpenSim.Framework
|
||||
private readonly int m_mapStride;
|
||||
private readonly int m_mapPatchsStride;
|
||||
|
||||
|
||||
// legacy CompressionFactor
|
||||
public float CompressionFactor { get; private set; }
|
||||
|
||||
@@ -469,7 +468,6 @@ namespace OpenSim.Framework
|
||||
for (int jj = 0; jj < SizeY; jj++)
|
||||
{
|
||||
m_heightmap[ii, jj] = (float)pTerrain[ii, jj];
|
||||
|
||||
}
|
||||
}
|
||||
// m_log.DebugFormat("{0} new by doubles. sizeX={1}, sizeY={2}, sizeZ={3}", LogHeader, SizeX, SizeY, SizeZ);
|
||||
|
||||
@@ -316,7 +316,6 @@ namespace OpenSim.Framework
|
||||
return;
|
||||
|
||||
OSD otmp;
|
||||
|
||||
if (map.TryGetValue("day_cycle", out otmp) && otmp is OSDMap)
|
||||
{
|
||||
Cycle = new DayCycle();
|
||||
|
||||
@@ -533,7 +533,6 @@ namespace OpenSim.Framework
|
||||
{
|
||||
int reqnum = RequestNumber++;
|
||||
string method = (data is not null && data["RequestMethod"] is not null) ? data["RequestMethod"] : "unknown";
|
||||
|
||||
if (DebugLevel >= 3)
|
||||
m_log.Debug($"[LOGHTTP]: HTTP OUT {reqnum} ServiceForm '{method}' to {url}");
|
||||
|
||||
@@ -1150,7 +1149,7 @@ namespace OpenSim.Framework
|
||||
HttpResponseMessage responseMessage = null;
|
||||
HttpRequestMessage request = null;
|
||||
HttpClient client = null;
|
||||
string respstring = String.Empty;
|
||||
string respstring = string.Empty;
|
||||
int sendlen = 0;
|
||||
int rcvlen = 0;
|
||||
try
|
||||
|
||||
Reference in New Issue
Block a user