From cf3a2242a65915ff60f5cdfa56fa15f26b9e89da Mon Sep 17 00:00:00 2001 From: Jammyjamjamman Date: Sun, 4 Mar 2018 19:36:45 +0000 Subject: [PATCH] Removed unnecessary template usage. --- .../shared_lib/include/platform/common/cache_manager.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/source/shared_lib/include/platform/common/cache_manager.h b/source/shared_lib/include/platform/common/cache_manager.h index 51c149108..9acc56cc0 100644 --- a/source/shared_lib/include/platform/common/cache_manager.h +++ b/source/shared_lib/include/platform/common/cache_manager.h @@ -46,7 +46,7 @@ protected: cacheItemSet } CacheAccessorType; - template + static Mutex & manageCachedItemMutex(string cacheKey) { if(itemCacheMutexList.find(cacheKey) == itemCacheMutexList.end()) { MutexSafeWrapper safeMutex(&mutexMap); @@ -66,7 +66,7 @@ protected: if(accessor == cacheItemSet) { if(value == NULL) { try { - Mutex &mutexCache = manageCachedItemMutex(cacheKey); + Mutex &mutexCache = manageCachedItemMutex(cacheKey); MutexSafeWrapper safeMutex(&mutexCache); if(itemCache.find(cacheKey) != itemCache.end()) { itemCache.erase(cacheKey); @@ -80,7 +80,7 @@ protected: } if(value != NULL) { try { - Mutex &mutexCache = manageCachedItemMutex(cacheKey); + Mutex &mutexCache = manageCachedItemMutex(cacheKey); MutexSafeWrapper safeMutex(&mutexCache); itemCache[cacheKey] = *value; safeMutex.ReleaseLock(); @@ -91,7 +91,7 @@ protected: } } // If this is the first access we return a default object of the type - Mutex &mutexCache = manageCachedItemMutex(cacheKey); + Mutex &mutexCache = manageCachedItemMutex(cacheKey); MutexSafeWrapper safeMutex(&mutexCache); return itemCache[cacheKey]; @@ -129,7 +129,7 @@ public: template static Mutex & getMutexForItem(string cacheKey) { - return manageCachedItemMutex(cacheKey); + return manageCachedItemMutex(cacheKey); } };