From 39b75d201b9d6c7604186f1c31d2370978e470e5 Mon Sep 17 00:00:00 2001 From: Shad Storhaug Date: Mon, 2 Sep 2013 18:41:48 +0700 Subject: [PATCH] Removed unneeded namespace imports. --- .../Caching/AspNetCacheProvider.cs | 1 - .../MvcSiteMapProvider/Caching/ICacheProvider.cs | 3 --- .../MvcSiteMapProvider/Caching/ISiteMapCache.cs | 2 -- .../MvcSiteMapProvider/Caching/MicroCache.cs | 12 +++++++++--- .../Collections/LockableDictionary.cs | 1 - .../Collections/Specialized/AttributeDictionary.cs | 4 +--- 6 files changed, 10 insertions(+), 13 deletions(-) diff --git a/src/MvcSiteMapProvider/MvcSiteMapProvider/Caching/AspNetCacheProvider.cs b/src/MvcSiteMapProvider/MvcSiteMapProvider/Caching/AspNetCacheProvider.cs index e627a2d2..be799e4b 100644 --- a/src/MvcSiteMapProvider/MvcSiteMapProvider/Caching/AspNetCacheProvider.cs +++ b/src/MvcSiteMapProvider/MvcSiteMapProvider/Caching/AspNetCacheProvider.cs @@ -1,5 +1,4 @@ using System; -using System.Collections.Generic; using System.Web; using System.Web.Caching; using MvcSiteMapProvider.Web.Mvc; diff --git a/src/MvcSiteMapProvider/MvcSiteMapProvider/Caching/ICacheProvider.cs b/src/MvcSiteMapProvider/MvcSiteMapProvider/Caching/ICacheProvider.cs index 6012457a..68780ff7 100644 --- a/src/MvcSiteMapProvider/MvcSiteMapProvider/Caching/ICacheProvider.cs +++ b/src/MvcSiteMapProvider/MvcSiteMapProvider/Caching/ICacheProvider.cs @@ -1,7 +1,4 @@ using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; namespace MvcSiteMapProvider.Caching { diff --git a/src/MvcSiteMapProvider/MvcSiteMapProvider/Caching/ISiteMapCache.cs b/src/MvcSiteMapProvider/MvcSiteMapProvider/Caching/ISiteMapCache.cs index 23bac418..e321dc9f 100644 --- a/src/MvcSiteMapProvider/MvcSiteMapProvider/Caching/ISiteMapCache.cs +++ b/src/MvcSiteMapProvider/MvcSiteMapProvider/Caching/ISiteMapCache.cs @@ -1,6 +1,4 @@ using System; -using System.Collections.Generic; -using MvcSiteMapProvider; namespace MvcSiteMapProvider.Caching { diff --git a/src/MvcSiteMapProvider/MvcSiteMapProvider/Caching/MicroCache.cs b/src/MvcSiteMapProvider/MvcSiteMapProvider/Caching/MicroCache.cs index e11b0e63..d53f0c88 100644 --- a/src/MvcSiteMapProvider/MvcSiteMapProvider/Caching/MicroCache.cs +++ b/src/MvcSiteMapProvider/MvcSiteMapProvider/Caching/MicroCache.cs @@ -1,11 +1,17 @@ using System; -using System.Collections.Generic; -using System.Linq; using System.Threading; -using System.Text; namespace MvcSiteMapProvider.Caching { + /// + /// A lightweight cache that ensures thread safety when loading items by using a callback that + /// gets called exactly 1 time. + /// + /// The type of object to cache. + /// + /// Caching strategy inspired by this post: + /// http://www.superstarcoders.com/blogs/posts/micro-caching-in-asp-net.aspx + /// public class MicroCache : IMicroCache { diff --git a/src/MvcSiteMapProvider/MvcSiteMapProvider/Collections/LockableDictionary.cs b/src/MvcSiteMapProvider/MvcSiteMapProvider/Collections/LockableDictionary.cs index a0832b48..41b18514 100644 --- a/src/MvcSiteMapProvider/MvcSiteMapProvider/Collections/LockableDictionary.cs +++ b/src/MvcSiteMapProvider/MvcSiteMapProvider/Collections/LockableDictionary.cs @@ -1,6 +1,5 @@ using System; using System.Collections.Generic; -using MvcSiteMapProvider; namespace MvcSiteMapProvider.Collections { diff --git a/src/MvcSiteMapProvider/MvcSiteMapProvider/Collections/Specialized/AttributeDictionary.cs b/src/MvcSiteMapProvider/MvcSiteMapProvider/Collections/Specialized/AttributeDictionary.cs index a55a912e..7dbd3151 100644 --- a/src/MvcSiteMapProvider/MvcSiteMapProvider/Collections/Specialized/AttributeDictionary.cs +++ b/src/MvcSiteMapProvider/MvcSiteMapProvider/Collections/Specialized/AttributeDictionary.cs @@ -1,9 +1,7 @@ using System; using System.Collections.Generic; -using System.Linq; -using System.Web.Mvc; -using MvcSiteMapProvider.Globalization; using MvcSiteMapProvider.Caching; +using MvcSiteMapProvider.Globalization; namespace MvcSiteMapProvider.Collections.Specialized {