diff options
author | Povilas Kanapickas <povilas.kanapickas@gmail.com> | 2010-10-18 16:52:05 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@novell.com> | 2010-10-18 16:52:27 +0100 |
commit | 849a713ffd29a58ae79e48f80835c28bbd9d5a72 (patch) | |
tree | 7d2c662f43a00f3bc04a0d51c685544074538a5c /unotools/source/accessibility | |
parent | f7cbde525450a1a9427873c264791c65056c4f2a (diff) |
remove non-compiled code
Diffstat (limited to 'unotools/source/accessibility')
-rw-r--r-- | unotools/source/accessibility/accessiblestatesethelper.cxx | 22 |
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; |