summaryrefslogtreecommitdiff
path: root/unotools/source/accessibility
diff options
context:
space:
mode:
Diffstat (limited to 'unotools/source/accessibility')
-rw-r--r--unotools/source/accessibility/accessiblestatesethelper.cxx22
1 files changed, 0 insertions, 22 deletions
diff --git a/unotools/source/accessibility/accessiblestatesethelper.cxx b/unotools/source/accessibility/accessiblestatesethelper.cxx
index bc8fe4b4dd21..8927f3cfb6e0 100644
--- a/unotools/source/accessibility/accessiblestatesethelper.cxx
+++ b/unotools/source/accessibility/accessiblestatesethelper.cxx
@@ -34,10 +34,6 @@
#include <rtl/uuid.h>
#include <tools/debug.hxx>
-#if 0
-#include <bitset>
-#endif
-
// defines how many states the bitfield can contain
// it has the size of 64 because I use a uInt64
#define BITFIELDSIZE 64
@@ -72,9 +68,6 @@ public:
inline void AddStates( const sal_Int64 _nStates ) SAL_THROW( ( ) );
private:
-#if 0
- ::std::bitset<BITFIELDSIZE> maStates; //Bitfield
-#endif
sal_uInt64 maStates;
};
@@ -95,9 +88,6 @@ AccessibleStateSetHelperImpl::~AccessibleStateSetHelperImpl()
inline sal_Bool AccessibleStateSetHelperImpl::IsEmpty ()
throw (uno::RuntimeException)
{
-#if 0
- return maStates.none();
-#endif
return maStates == 0;
}
@@ -105,9 +95,6 @@ inline sal_Bool AccessibleStateSetHelperImpl::Contains (sal_Int16 aState)
throw (uno::RuntimeException)
{
DBG_ASSERT(aState < BITFIELDSIZE, "the statesset is too small");
-#if 0
- return maStates.test(aState);
-#endif
sal_uInt64 aTempBitSet(1);
aTempBitSet <<= aState;
return ((aTempBitSet & maStates) != 0);
@@ -139,9 +126,6 @@ inline void AccessibleStateSetHelperImpl::AddState(sal_Int16 aState)
throw (uno::RuntimeException)
{
DBG_ASSERT(aState < BITFIELDSIZE, "the statesset is too small");
-#if 0
- maStates.set(aState);
-#endif
sal_uInt64 aTempBitSet(1);
aTempBitSet <<= aState;
maStates |= aTempBitSet;
@@ -151,9 +135,6 @@ inline void AccessibleStateSetHelperImpl::RemoveState(sal_Int16 aState)
throw (uno::RuntimeException)
{
DBG_ASSERT(aState < BITFIELDSIZE, "the statesset is too small");
-#if 0
- maStates.set(aState, 0);
-#endif
sal_uInt64 aTempBitSet(1);
aTempBitSet <<= aState;
aTempBitSet = ~aTempBitSet;
@@ -173,9 +154,6 @@ inline sal_Bool AccessibleStateSetHelperImpl::Compare(
bResult = sal_True;
else
{
-#if 0
- std::bitset<BITFIELDSIZE> aTempBitSet(maStates);
-#endif
sal_uInt64 aTempBitSet(maStates);
aTempBitSet ^= pComparativeValue->maStates;
pOldStates->maStates = aTempBitSet;