Kaydet (Commit) 813f3436 authored tarafından Noel Grandin's avatar Noel Grandin Kaydeden (comit) Noel Grandin

loplugin:unusedmethods comphelper

Change-Id: I704a1e777505dbad83d81857f09601c2887fb6a1
Reviewed-on: https://gerrit.libreoffice.org/16682Reviewed-by: 's avatarNoel Grandin <noelgrandin@gmail.com>
Tested-by: 's avatarNoel Grandin <noelgrandin@gmail.com>
üst 1a7e0cfd
......@@ -136,10 +136,6 @@ namespace comphelper
{
m_aMutexGuard.clear();
}
inline void reset()
{
m_aMutexGuard.reset();
}
private:
::osl::ResettableMutexGuard m_aMutexGuard;
......
......@@ -101,8 +101,6 @@ namespace comphelper
/// dispose the object. No multiplexing anymore
void dispose();
const ::com::sun::star::uno::Reference< ::com::sun::star::container::XContainer >&
getContainer() const { return m_xContainer; }
};
......
......@@ -51,9 +51,6 @@ namespace comphelper
public:
/// determines whether or not this handler was selected
bool wasSelected() const { return m_bSelected; }
/// resets the state to "not selected", so you may reuse the handler
void reset() { m_bSelected = false; }
protected:
void implSelected() { m_bSelected = true; }
};
......
......@@ -77,11 +77,6 @@ namespace comphelper
inline bool
empty() const;
/** determines the number of elements in the container
*/
inline size_t
size() const;
/** creates an iterator for looping through all registered listeners
*/
::std::unique_ptr< ::cppu::OInterfaceIteratorHelper > createIterator()
......@@ -145,11 +140,6 @@ namespace comphelper
return ( m_aListeners.getLength() == 0 );
}
inline size_t OListenerContainer::size() const
{
return m_aListeners.getLength();
}
//= OSimpleListenerContainer
......@@ -194,7 +184,6 @@ namespace comphelper
using OListenerContainer::disposing;
using OListenerContainer::clear;
using OListenerContainer::empty;
using OListenerContainer::size;
using OListenerContainer::createIterator;
/// typed notification
......
......@@ -119,14 +119,6 @@ namespace comphelper
//- XLogger::log equivalents/wrappers
//- string messages
/// logs a given message, without any arguments, or source class/method names
bool log( const sal_Int32 _nLogLevel, const OUString& _rMessage ) const
{
if ( isLoggable( _nLogLevel ) )
return impl_log( _nLogLevel, NULL, NULL, _rMessage );
return false;
}
/** logs a given message, replacing a placeholder in the message with an argument
The function takes, additionally to the log level and the message, an arbitrary
......@@ -212,14 +204,6 @@ namespace comphelper
//- XLogger::log equivalents/wrappers
//- ASCII messages
/// logs a given message, without any arguments, or source class/method names
bool log( const sal_Int32 _nLogLevel, const sal_Char* _pMessage ) const
{
if ( isLoggable( _nLogLevel ) )
return impl_log( _nLogLevel, NULL, NULL, OUString::createFromAscii( _pMessage ) );
return false;
}
/** logs a given message, replacing a placeholder in the message with an argument
The function takes, additionally to the log level and the message, an arbitrary
......@@ -305,14 +289,6 @@ namespace comphelper
//- XLogger::logp equivalents/wrappers
//- string messages
/// logs a given message, without any arguments, or source class/method names
bool logp( const sal_Int32 _nLogLevel, const sal_Char* _pSourceClass, const sal_Char* _pSourceMethod, const OUString& _rMessage ) const
{
if ( isLoggable( _nLogLevel ) )
return impl_log( _nLogLevel, _pSourceClass, _pSourceMethod, _rMessage );
return false;
}
/** logs a given message, replacing a placeholder in the message with an argument
The function takes, additionally to the logp level and the message, an arbitrary
......@@ -398,14 +374,6 @@ namespace comphelper
//- XLogger::logp equivalents/wrappers
//- ASCII messages
/// logs a given ASCII message, without any arguments, or source class/method names
bool logp( const sal_Int32 _nLogLevel, const sal_Char* _pSourceClass, const sal_Char* _pSourceMethod, const sal_Char* _pAsciiMessage ) const
{
if ( isLoggable( _nLogLevel ) )
return impl_log( _nLogLevel, _pSourceClass, _pSourceMethod, OUString::createFromAscii( _pAsciiMessage ) );
return false;
}
/** logs a given ASCII message, replacing a placeholder in the message with an argument
The function takes, additionally to the logp level and the message, an arbitrary
......@@ -629,14 +597,6 @@ namespace comphelper
//- XLogger::logp equivalents/wrappers
//- resource IDs
/// logs a given ASCII message, without any arguments, or source class/method names
bool logp( const sal_Int32 _nLogLevel, const sal_Char* _pSourceClass, const sal_Char* _pSourceMethod, const sal_Int32 _nMessageResID ) const
{
if ( isLoggable( _nLogLevel ) )
return impl_log( _nLogLevel, _pSourceClass, _pSourceMethod, impl_loadStringMessage_nothrow( _nMessageResID ) );
return false;
}
/** logs a given ASCII message, replacing a placeholder in the message with an argument
*/
template< typename ARGTYPE1 >
......
......@@ -82,26 +82,11 @@ namespace comphelper
~NamedValueCollection();
inline void assign( const ::com::sun::star::uno::Any& i_rWrappedElements )
{
impl_assign( i_rWrappedElements );
}
inline void assign( const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& _rArguments )
{
impl_assign( _rArguments );
}
inline void assign( const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& _rArguments )
{
impl_assign( _rArguments );
}
inline void assign( const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::NamedValue >& _rArguments )
{
impl_assign( _rArguments );
}
inline void clear()
{
impl_assign( ::com::sun::star::uno::Sequence< ::com::sun::star::beans::NamedValue >() );
......
......@@ -41,7 +41,6 @@ namespace comphelper
{
}
inline ::osl::Mutex& getMutex() { return *m_pMutexImpl; }
inline operator ::osl::Mutex& () { return *m_pMutexImpl; }
private:
......
......@@ -58,7 +58,6 @@ private:
/// wait until all work is completed, then join all threads
void waitAndCleanupWorkers();
ThreadTask *waitForWork( osl::Condition &rNewWork );
ThreadTask *popWork();
void startWork();
void stopWork();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment