aboutsummaryrefslogtreecommitdiffstatshomepage
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
parentminor: Add method doc to IImproveAssetCache (diff)
downloadopensim-SC_OLD-ee8ba1ab9a30cf397c390b161a5d03e8c7b86290.zip
opensim-SC_OLD-ee8ba1ab9a30cf397c390b161a5d03e8c7b86290.tar.gz
opensim-SC_OLD-ee8ba1ab9a30cf397c390b161a5d03e8c7b86290.tar.bz2
opensim-SC_OLD-ee8ba1ab9a30cf397c390b161a5d03e8c7b86290.tar.xz
Simplify FlotsamAssetCache.CheckFromMemoryCache()
-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>