diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-12-13 23:32:59 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-12-14 09:52:49 +0000 |
commit | fbfeb0cb787ff010a4c96bbce3e21c9029421b63 (patch) | |
tree | 383713f07e0a8cbd1d06b395a80de1291746a91e /unotools/source/accessibility | |
parent | 59bf1b583f235dbf0ffee971840f2c6524effa06 (diff) |
callcatcher: remove some unused code
Diffstat (limited to 'unotools/source/accessibility')
-rw-r--r-- | unotools/source/accessibility/accessiblestatesethelper.cxx | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/unotools/source/accessibility/accessiblestatesethelper.cxx b/unotools/source/accessibility/accessiblestatesethelper.cxx index f28fb9966e9d..aa631c4e1ff1 100644 --- a/unotools/source/accessibility/accessiblestatesethelper.cxx +++ b/unotools/source/accessibility/accessiblestatesethelper.cxx @@ -58,10 +58,6 @@ public: throw (uno::RuntimeException); void RemoveState(sal_Int16 aState) throw (uno::RuntimeException); - sal_Bool Compare(const AccessibleStateSetHelperImpl* pComparativeValue, - AccessibleStateSetHelperImpl* pOldStates, - AccessibleStateSetHelperImpl* pNewStates) const - throw (uno::RuntimeException); inline void AddStates( const sal_Int64 _nStates ) SAL_THROW( ( ) ); @@ -139,31 +135,6 @@ inline void AccessibleStateSetHelperImpl::RemoveState(sal_Int16 aState) maStates &= aTempBitSet; } -inline sal_Bool AccessibleStateSetHelperImpl::Compare( - const AccessibleStateSetHelperImpl* pComparativeValue, - AccessibleStateSetHelperImpl* pOldStates, - AccessibleStateSetHelperImpl* pNewStates) const - throw (uno::RuntimeException) -{ - sal_Bool bResult(sal_False); - if (pComparativeValue && pOldStates && pNewStates) - { - if (maStates == pComparativeValue->maStates) - bResult = sal_True; - else - { - sal_uInt64 aTempBitSet(maStates); - aTempBitSet ^= pComparativeValue->maStates; - pOldStates->maStates = aTempBitSet; - pOldStates->maStates &= maStates; - pNewStates->maStates = aTempBitSet; - pNewStates->maStates &= pComparativeValue->maStates; - } - } - return bResult; -} - - //===== internal ============================================================ AccessibleStateSetHelper::AccessibleStateSetHelper () @@ -280,17 +251,6 @@ void AccessibleStateSetHelper::RemoveState(sal_Int16 aState) mpHelperImpl->RemoveState(aState); } -sal_Bool AccessibleStateSetHelper::Compare( - const AccessibleStateSetHelper& rComparativeValue, - AccessibleStateSetHelper& rOldStates, - AccessibleStateSetHelper& rNewStates) - throw (uno::RuntimeException) -{ - osl::MutexGuard aGuard (maMutex); - return mpHelperImpl->Compare(rComparativeValue.mpHelperImpl, - rOldStates.mpHelperImpl, rNewStates.mpHelperImpl); -} - //===== XTypeProvider ======================================================= uno::Sequence< ::com::sun::star::uno::Type> |