From 257fc5515ac9cb36032c2f44f040c3620ed2f328 Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Mon, 4 May 2009 15:38:36 +0000 Subject: * minor: remove some mono compiler warnings, minor cleanup --- OpenSim/Region/ClientStack/LindenUDP/J2KImage.cs | 25 +++++++++--------------- 1 file changed, 9 insertions(+), 16 deletions(-) (limited to 'OpenSim/Region/ClientStack/LindenUDP/J2KImage.cs') diff --git a/OpenSim/Region/ClientStack/LindenUDP/J2KImage.cs b/OpenSim/Region/ClientStack/LindenUDP/J2KImage.cs index 6878fe5..1882005 100644 --- a/OpenSim/Region/ClientStack/LindenUDP/J2KImage.cs +++ b/OpenSim/Region/ClientStack/LindenUDP/J2KImage.cs @@ -36,20 +36,13 @@ using System.Reflection; namespace OpenSim.Region.ClientStack.LindenUDP { - /* - * - * J2KImage - * - * We use this class to store image data and associated request data and attributes - * - * - * - */ - + /// + /// We use this class to store image data and associated request data and attributes + /// public class J2KImage { - private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); + public double m_designatedPriorityKey; public double m_requestedPriority = 0.0d; public uint m_lastSequence = 0; @@ -107,7 +100,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP { return (ushort)(((m_asset.Data.Length - cFirstPacketSize + cImagePacketSize - 1) / cImagePacketSize) + 1); } - catch(Exception e) + catch (Exception) { // If the asset is missing/destroyed/truncated, we will land // here @@ -223,9 +216,9 @@ namespace OpenSim.Region.ClientStack.LindenUDP } } - //It's concievable that the client might request packet one - //from a one packet image, which is really packet 0, - //which would leave us with a negative imagePacketSize.. + // It's concievable that the client might request packet one + // from a one packet image, which is really packet 0, + // which would leave us with a negative imagePacketSize.. if (imagePacketSize > 0) { byte[] imageData = new byte[imagePacketSize]; @@ -252,7 +245,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP return true; } } - catch (Exception e) + catch (Exception) { return false; } -- cgit v1.1