diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-01-30 14:36:57 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-01-30 16:17:45 +0100 |
commit | facc94bb0aef58353d54e14f948790643ccbec32 (patch) | |
tree | 00da6a066f7acd65787730ffbe78b6439e5bf148 /svtools/source | |
parent | b87af9775167002d36a3bc16cb308ea7895d7ea0 (diff) |
loplugin:unusedfields
Change-Id: Ifb9c91b3e8d6c2dd3a639a239fa41e7d5c7a4ee6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87735
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svtools/source')
-rw-r--r-- | svtools/source/control/asynclink.cxx | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/svtools/source/control/asynclink.cxx b/svtools/source/control/asynclink.cxx index d5cde4fe66dc..31a7b28e7978 100644 --- a/svtools/source/control/asynclink.cxx +++ b/svtools/source/control/asynclink.cxx @@ -40,9 +40,7 @@ void AsynchronLink::Call( void* pObj, bool bAllowDoubles ) if( _aLink.IsSet() ) { _pArg = pObj; - DBG_ASSERT( bAllowDoubles || - ( !_nEventId && ( !_pIdle || !_pIdle->IsActive() ) ), - "Already made a call" ); + DBG_ASSERT( bAllowDoubles || !_nEventId, "Already made a call" ); ClearPendingCall(); if( _pMutex ) _pMutex->acquire(); _nEventId = Application::PostUserEvent( LINK( this, AsynchronLink, HandleCall_PostUserEvent) ); @@ -56,7 +54,6 @@ AsynchronLink::~AsynchronLink() { Application::RemoveUserEvent( _nEventId ); } - _pIdle.reset(); if( _pDeleted ) *_pDeleted = true; _pMutex.reset(); } @@ -83,7 +80,6 @@ void AsynchronLink::ClearPendingCall() _nEventId = nullptr; } if( _pMutex ) _pMutex->release(); - if( _pIdle ) _pIdle->Stop(); } void AsynchronLink::Call_Impl( void* pArg ) |