From 34180700b2686c97cdce0b52ca9578a41a153035 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 29 Sep 2015 12:40:47 +0200 Subject: loplugin:removeunusedmethods, remove unused stuff Change-Id: I35456b2a3ad2a84a1d045f09cdfb29e4c19b8350 --- stoc/source/corereflection/lrucache.hxx | 14 -------------- stoc/source/javavm/javavm.hxx | 2 -- stoc/source/security/lru_cache.h | 15 --------------- 3 files changed, 31 deletions(-) (limited to 'stoc/source') diff --git a/stoc/source/corereflection/lrucache.hxx b/stoc/source/corereflection/lrucache.hxx index 5a2c4cf34154..3bfb878b72ae 100644 --- a/stoc/source/corereflection/lrucache.hxx +++ b/stoc/source/corereflection/lrucache.hxx @@ -77,12 +77,6 @@ public: @param rValue a value */ inline void setValue( const t_Key & rKey, const t_Val & rValue ); - /** Tests whether a value is cached for given key. -
- @param rKey a key - @return true, if value is cached - */ - inline bool hasValue( const t_Key & rKey ) const; /** Clears the cache, thus releasing all cached elements and keys.
*/ @@ -141,14 +135,6 @@ inline void LRU_Cache< t_Key, t_Val, t_KeyHash >::toFront( CacheEntry * pEntry ) } } -template< class t_Key, class t_Val, class t_KeyHash > -inline bool LRU_Cache< t_Key, t_Val, t_KeyHash >::hasValue( const t_Key & rKey ) const -{ - ::osl::MutexGuard aGuard( _aCacheMutex ); - const typename t_Key2Element::const_iterator iFind( _aKey2Element.find( rKey ) ); - return (iFind != _aKey2Element.end()); -} - template< class t_Key, class t_Val, class t_KeyHash > inline t_Val LRU_Cache< t_Key, t_Val, t_KeyHash >::getValue( const t_Key & rKey ) const { diff --git a/stoc/source/javavm/javavm.hxx b/stoc/source/javavm/javavm.hxx index 11d3dc5dc341..4de0d00aa485 100644 --- a/stoc/source/javavm/javavm.hxx +++ b/stoc/source/javavm/javavm.hxx @@ -45,8 +45,6 @@ namespace jvmaccess { namespace stoc_javavm { -bool configureJava(const css::uno::Reference< - css::uno::XComponentContext>& xContext); // The MS compiler needs a typedef here, so the JavaVirtualMachine ctor can call // its base class ctor: typedef diff --git a/stoc/source/security/lru_cache.h b/stoc/source/security/lru_cache.h index 3ecf9905f251..197f395ff6e3 100644 --- a/stoc/source/security/lru_cache.h +++ b/stoc/source/security/lru_cache.h @@ -82,13 +82,6 @@ public: */ inline void set( t_key const & key, t_val const & val ); - /** Tests whether a value is cached for given key. - - @param key a key - @return true, if value is cached - */ - inline bool has( t_key const & key ) const; - /** Clears the cache, releasing all cached elements and keys. */ inline void clear(); @@ -170,14 +163,6 @@ inline void lru_cache< t_key, t_val, t_hashKey, t_equalKey >::toFront( } } -template< typename t_key, typename t_val, typename t_hashKey, typename t_equalKey > -inline bool lru_cache< t_key, t_val, t_hashKey, t_equalKey >::has( - t_key const & key ) const -{ - typename t_key2element::const_iterator const iFind( m_key2element.find( key ) ); - return (iFind != m_key2element.end()); -} - template< typename t_key, typename t_val, typename t_hashKey, typename t_equalKey > inline t_val const * lru_cache< t_key, t_val, t_hashKey, t_equalKey >::lookup( t_key const & key ) const -- cgit