summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2020-02-16 13:05:12 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-02-17 08:59:01 +0100
commit6be9ae8aa1d3b164f3953dbc1cb7f0f1c1976d9b (patch)
tree244d93b2f30894d9367aae54d76b962e53a165f2 /sfx2
parentea0701aab307a549cf6cad1d309cab1bf11ef436 (diff)
inline some acquire/release calls
because these are all on the hot path, and in the best case, with enough inlining, the compiler can skip the call altogether and just do a locked CMPXHG instruction Change-Id: I099d6385f602e40e1767f9f1002b7514ecf436e5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88775 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/doc/sfxbasemodel.cxx23
1 files changed, 0 insertions, 23 deletions
diff --git a/sfx2/source/doc/sfxbasemodel.cxx b/sfx2/source/doc/sfxbasemodel.cxx
index 7d6c8317f804..ddc5d050da23 100644
--- a/sfx2/source/doc/sfxbasemodel.cxx
+++ b/sfx2/source/doc/sfxbasemodel.cxx
@@ -527,29 +527,6 @@ Any SAL_CALL SfxBaseModel::queryInterface( const uno::Type& rType )
return SfxBaseModel_Base::queryInterface( rType );
}
-// XInterface
-void SAL_CALL SfxBaseModel::acquire() throw( )
-{
- // Attention:
- // Don't use mutex or guard in this method!!! Is a method of XInterface.
-
- // Forward to baseclass
- OWeakObject::acquire() ;
-}
-
-
-// XInterface
-
-
-void SAL_CALL SfxBaseModel::release() throw( )
-{
- // Attention:
- // Don't use mutex or guard in this method!!! Is a method of XInterface.
-
- // Forward to baseclass
- OWeakObject::release() ;
-}
-
// XTypeProvider