aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2014-01-18 00:21:53 +0000
committerJustin Clark-Casey (justincc)2014-01-18 00:21:53 +0000
commitee8ba1ab9a30cf397c390b161a5d03e8c7b86290 (patch)
treee910ced56f8f963b2f01eeef672b7b86c9e32c0a /OpenSim/Region
parentminor: Add method doc to IImproveAssetCache (diff)
downloadopensim-SC-ee8ba1ab9a30cf397c390b161a5d03e8c7b86290.zip
opensim-SC-ee8ba1ab9a30cf397c390b161a5d03e8c7b86290.tar.gz
opensim-SC-ee8ba1ab9a30cf397c390b161a5d03e8c7b86290.tar.bz2
opensim-SC-ee8ba1ab9a30cf397c390b161a5d03e8c7b86290.tar.xz
Simplify FlotsamAssetCache.CheckFromMemoryCache()
Diffstat (limited to 'OpenSim/Region')
-rw-r--r--OpenSim/Region/CoreModules/Asset/FlotsamAssetCache.cs7
1 files changed, 1 insertions, 6 deletions
diff --git a/OpenSim/Region/CoreModules/Asset/FlotsamAssetCache.cs b/OpenSim/Region/CoreModules/Asset/FlotsamAssetCache.cs
index 169412e..a1803c1 100644
--- a/OpenSim/Region/CoreModules/Asset/FlotsamAssetCache.cs
+++ b/OpenSim/Region/CoreModules/Asset/FlotsamAssetCache.cs
@@ -344,12 +344,7 @@ namespace OpenSim.Region.CoreModules.Asset
344 344
345 private bool CheckFromMemoryCache(string id) 345 private bool CheckFromMemoryCache(string id)
346 { 346 {
347 AssetBase asset = null; 347 return m_MemoryCache.Contains(id);
348
349 if (m_MemoryCache.TryGetValue(id, out asset))
350 return true;
351
352 return false;
353 } 348 }
354 349
355 /// <summary> 350 /// <summary>