summaryrefslogtreecommitdiff
path: root/stoc/source/security/lru_cache.h
diff options
context:
space:
mode:
Diffstat (limited to 'stoc/source/security/lru_cache.h')
-rw-r--r--stoc/source/security/lru_cache.h18
1 files changed, 0 insertions, 18 deletions
diff --git a/stoc/source/security/lru_cache.h b/stoc/source/security/lru_cache.h
index 197f395ff6e3..51459af0418f 100644
--- a/stoc/source/security/lru_cache.h
+++ b/stoc/source/security/lru_cache.h
@@ -82,10 +82,6 @@ public:
*/
inline void set( t_key const & key, t_val const & val );
- /** Clears the cache, releasing all cached elements and keys.
- */
- inline void clear();
-
/** Sets the number of elements to be cached. This will clear previous entries.
@param cacheSize number of elements to be cached
@@ -240,20 +236,6 @@ inline void lru_cache< t_key, t_val, t_hashKey, t_equalKey >::set(
}
}
-template< typename t_key, typename t_val, typename t_hashKey, typename t_equalKey >
-inline void lru_cache< t_key, t_val, t_hashKey, t_equalKey >::clear()
-{
- m_key2element.clear();
- for ( ::std::size_t nPos = m_size; nPos--; )
- {
- m_block[ nPos ].m_key = t_key();
- m_block[ nPos ].m_val = t_val();
- }
-#ifdef __CACHE_DIAGNOSE
- OSL_TRACE( "> cleared cache" );
-#endif
-}
-
}
#endif