summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/svtools/asynclink.hxx6
-rw-r--r--svtools/source/control/asynclink.cxx15
2 files changed, 0 insertions, 21 deletions
diff --git a/include/svtools/asynclink.hxx b/include/svtools/asynclink.hxx
index 3a699fe46a14..ae5139e3206b 100644
--- a/include/svtools/asynclink.hxx
+++ b/include/svtools/asynclink.hxx
@@ -34,8 +34,6 @@ class UNLESS_MERGELIBS(SVT_DLLPUBLIC) AsynchronLink
{
Link<void*,void> _aLink;
ImplSVEvent* _nEventId;
- bool _bInCall;
- bool* _pDeleted;
void* _pArg;
std::mutex _aMutex;
@@ -45,14 +43,10 @@ public:
AsynchronLink( const Link<void*,void>& rLink )
: _aLink( rLink )
, _nEventId( nullptr )
- , _bInCall( false )
- , _pDeleted( nullptr )
, _pArg( nullptr )
{}
AsynchronLink()
: _nEventId( nullptr )
- , _bInCall( false )
- , _pDeleted( nullptr )
, _pArg( nullptr )
{}
~AsynchronLink();
diff --git a/svtools/source/control/asynclink.cxx b/svtools/source/control/asynclink.cxx
index 1fb8b613eb09..08fc755c7862 100644
--- a/svtools/source/control/asynclink.cxx
+++ b/svtools/source/control/asynclink.cxx
@@ -30,7 +30,6 @@ namespace svtools {
void AsynchronLink::Call( void* pObj, bool bAllowDoubles )
{
- SAL_INFO_IF( !_bInCall, "svtools", "Recursives Call. Eher ueber Timer. TLX Fragen" ); // Do NOT translate. This is a valuable historical artefact.
if( !_aLink.IsSet() )
return;
@@ -47,8 +46,6 @@ AsynchronLink::~AsynchronLink()
{
Application::RemoveUserEvent( _nEventId );
}
- if( _pDeleted )
- *_pDeleted = true;
}
void AsynchronLink::ClearPendingCall()
@@ -69,19 +66,7 @@ IMPL_LINK_NOARG( AsynchronLink, HandleCall_PostUserEvent, void*, void )
// need to release the lock before calling the client since
// the client may call back into us
}
- _bInCall = true;
-
- // some fancy footwork in case we get deleted inside the call
- bool bDeleted = false;
- _pDeleted = &bDeleted;
-
_aLink.Call( _pArg );
-
- if( !bDeleted )
- {
- _bInCall = false;
- _pDeleted = nullptr;
- }
}
}