From 13526097f24b7a8ad63b1d482c44b44397fa055f Mon Sep 17 00:00:00 2001
From: Adam Frisby
Date: Thu, 1 May 2008 16:35:00 +0000
Subject: * Spring cleaning on Region.Environment. * Converted a large number
of read-only fields to be actually, readonly. * Reformatted code sections. *
Removed redundant code.
---
.../Agent/AssetDownload/AssetDownloadModule.cs | 21 +++++++++------------
1 file changed, 9 insertions(+), 12 deletions(-)
(limited to 'OpenSim/Region/Environment/Modules/Agent/AssetDownload')
diff --git a/OpenSim/Region/Environment/Modules/Agent/AssetDownload/AssetDownloadModule.cs b/OpenSim/Region/Environment/Modules/Agent/AssetDownload/AssetDownloadModule.cs
index 48db51b..550b673 100644
--- a/OpenSim/Region/Environment/Modules/Agent/AssetDownload/AssetDownloadModule.cs
+++ b/OpenSim/Region/Environment/Modules/Agent/AssetDownload/AssetDownloadModule.cs
@@ -40,15 +40,16 @@ namespace OpenSim.Region.Environment.Modules.Agent.AssetDownload
///
/// Asset requests with data which are ready to be sent back to requesters. This includes textures.
///
- private List AssetRequests;
+ private readonly List AssetRequests;
- private Scene m_scene;
- private Dictionary RegisteredScenes = new Dictionary();
+ private readonly Dictionary RegisteredScenes = new Dictionary();
///
/// Assets requests (for each user) which are waiting for asset server data. This includes texture requests
///
- private Dictionary> RequestedAssets;
+ private readonly Dictionary> RequestedAssets;
+
+ private Scene m_scene;
public AssetDownloadModule()
{
@@ -205,22 +206,18 @@ namespace OpenSim.Region.Environment.Modules.Agent.AssetDownload
{
public AssetBase AssetInf;
public byte AssetRequestSource = 2;
- public long DataPointer = 0;
+ public long DataPointer;
public int DiscardLevel = -1;
public AssetBase ImageInfo;
public bool IsTextureRequest;
- public int NumPackets = 0;
- public int PacketCounter = 0;
- public byte[] Params = null;
+ public int NumPackets;
+ public int PacketCounter;
+ public byte[] Params;
public LLUUID RequestAssetID;
public IClientAPI RequestUser;
public LLUUID TransferRequestID;
//public bool AssetInCache;
//public int TimeRequested;
-
- public AssetRequest()
- {
- }
}
#endregion
--
cgit v1.1