From 5a6fd21a2c31a41c617f1d2a7e390956b5aafb0a Mon Sep 17 00:00:00 2001 From: Jeff Ames Date: Thu, 10 Jan 2008 06:49:29 +0000 Subject: Whitespace cleanup. --- .../Framework/Communications/Cache/AssetCache.cs | 2 +- OpenSim/Framework/PacketPool.cs | 6 ++-- OpenSim/Framework/Util.cs | 42 +++++++++++----------- 3 files changed, 25 insertions(+), 25 deletions(-) (limited to 'OpenSim/Framework') diff --git a/OpenSim/Framework/Communications/Cache/AssetCache.cs b/OpenSim/Framework/Communications/Cache/AssetCache.cs index bd3437b..988c558 100644 --- a/OpenSim/Framework/Communications/Cache/AssetCache.cs +++ b/OpenSim/Framework/Communications/Cache/AssetCache.cs @@ -400,7 +400,7 @@ namespace OpenSim.Framework.Communications.Cache //Console.WriteLine("asset request " + requestID); if (!Assets.ContainsKey(requestID)) { - //not found asset + //not found asset // so request from asset server if (!RequestedAssets.ContainsKey(requestID)) { diff --git a/OpenSim/Framework/PacketPool.cs b/OpenSim/Framework/PacketPool.cs index 49aeb16..30b6d6a 100644 --- a/OpenSim/Framework/PacketPool.cs +++ b/OpenSim/Framework/PacketPool.cs @@ -72,7 +72,7 @@ namespace OpenSim.Framework } // Copied from LibSL, and added a check to avoid overwriting the - // buffer + // buffer private void ZeroDecodeCommand(byte[] src, byte[] dest) { for (int srcPos = 6, destPos = 6; destPos < 10; ++srcPos) @@ -89,8 +89,8 @@ namespace OpenSim.Framework { dest[destPos++] = src[srcPos]; } - } - } + } + } private PacketType GetType(byte[] bytes) { diff --git a/OpenSim/Framework/Util.cs b/OpenSim/Framework/Util.cs index 0f41380..f80350e 100644 --- a/OpenSim/Framework/Util.cs +++ b/OpenSim/Framework/Util.cs @@ -222,7 +222,7 @@ namespace OpenSim.Framework output.Append(": "); } - output.Append(CleanString(UTF8Encoding.UTF8.GetString(bytes, 0, bytes.Length - 1))); + output.Append(CleanString(UTF8Encoding.UTF8.GetString(bytes, 0, bytes.Length - 1))); } else { @@ -414,30 +414,30 @@ namespace OpenSim.Framework return lluuid.UUID.ToString("n"); } - public static string CleanString(string input) - { - if(input.Length == 0) - return input; + public static string CleanString(string input) + { + if(input.Length == 0) + return input; - int clip=input.Length; + int clip=input.Length; - // Test for ++ string terminator - int pos=input.IndexOf("\0"); - if(pos != -1 && pos < clip) - clip=pos; + // Test for ++ string terminator + int pos=input.IndexOf("\0"); + if(pos != -1 && pos < clip) + clip=pos; - // Test for CR - pos=input.IndexOf("\r"); - if(pos != -1 && pos < clip) - clip=pos; + // Test for CR + pos=input.IndexOf("\r"); + if(pos != -1 && pos < clip) + clip=pos; - // Test for LF - pos=input.IndexOf("\n"); - if(pos != -1 && pos < clip) - clip=pos; + // Test for LF + pos=input.IndexOf("\n"); + if(pos != -1 && pos < clip) + clip=pos; - // Truncate string before first end-of-line character found - return input.Substring(0, clip); - } + // Truncate string before first end-of-line character found + return input.Substring(0, clip); + } } } -- cgit v1.1