summaryrefslogtreecommitdiff
path: root/stoc
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-09-29 12:40:47 +0200
committerNoel Grandin <noel@peralex.com>2015-09-29 15:08:43 +0200
commit34180700b2686c97cdce0b52ca9578a41a153035 (patch)
tree073f3753e4483f30efa3c7c769f23971e6a046d5 /stoc
parente710170d906fcb248a5e4ff5a3a90cbf0e20003d (diff)
loplugin:removeunusedmethods, remove unused stuff
Change-Id: I35456b2a3ad2a84a1d045f09cdfb29e4c19b8350
Diffstat (limited to 'stoc')
-rw-r--r--stoc/source/corereflection/lrucache.hxx14
-rw-r--r--stoc/source/javavm/javavm.hxx2
-rw-r--r--stoc/source/security/lru_cache.h15
3 files changed, 0 insertions, 31 deletions
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.
- <br>
- @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.
<br>
*/
@@ -142,14 +136,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
{
::osl::MutexGuard aGuard( _aCacheMutex );
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();
@@ -171,14 +164,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
{