diff options
author | Noel Grandin <noel@peralex.com> | 2015-10-01 13:56:48 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2015-10-02 06:20:35 +0000 |
commit | d68a0fc050ea4d57e15246f8e71781cd42ebdaa1 (patch) | |
tree | d8f8e8823de13253a1bb41a8a4804dfec042694b /stoc | |
parent | de020fc9c3c67541067bc7e0b72ed41eae650288 (diff) |
loplugin:unusedmethods
Change-Id: Ie1603adf3908fd0668bcbe8f75c6bafa0d0bfd6c
Reviewed-on: https://gerrit.libreoffice.org/19072
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'stoc')
-rw-r--r-- | stoc/source/corereflection/base.hxx | 9 | ||||
-rw-r--r-- | stoc/source/security/lru_cache.h | 18 |
2 files changed, 0 insertions, 27 deletions
diff --git a/stoc/source/corereflection/base.hxx b/stoc/source/corereflection/base.hxx index c4f5d36f2638..217b55ce854b 100644 --- a/stoc/source/corereflection/base.hxx +++ b/stoc/source/corereflection/base.hxx @@ -69,15 +69,6 @@ inline bool td_equals( typelib_TypeDescription * pTD, typelib_TypeDescriptionRef rtl_ustr_compare( pTD->pTypeName->buffer, pType->pTypeName->buffer ) == 0)); } -inline typelib_TypeDescription * getTypeByName( const OUString & rName ) -{ - typelib_TypeDescription * pTypeDescr = 0; - typelib_typedescription_getByName( &pTypeDescr, rName.pData ); - if (! pTypeDescr->bComplete) - typelib_typedescription_complete( &pTypeDescr ); - return pTypeDescr; -} - typedef std::unordered_map< OUString, css::uno::WeakReference< css::reflection::XIdlField >, OUStringHash > OUString2Field; typedef std::unordered_map< OUString, css::uno::WeakReference< css::reflection::XIdlMethod >, 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 |