diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-08-24 01:24:42 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-08-24 11:21:42 +0100 |
commit | cb97526259e265e488a50c2747407f7289f8839c (patch) | |
tree | 9878e79d50804e941141fbc8391b47829faf323f /sfx2/source/bastyp | |
parent | 7e4ed3e5b8b9209240b9608aa0037a6a6732ef1c (diff) |
callcatcher: remove various unused methods
Diffstat (limited to 'sfx2/source/bastyp')
-rw-r--r-- | sfx2/source/bastyp/bitset.cxx | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/sfx2/source/bastyp/bitset.cxx b/sfx2/source/bastyp/bitset.cxx index 6dead7468b30..9faab1d54ad4 100644 --- a/sfx2/source/bastyp/bitset.cxx +++ b/sfx2/source/bastyp/bitset.cxx @@ -138,51 +138,6 @@ BitSet::BitSet( const BitSet& rOrig ) //-------------------------------------------------------------------- -// creates a bitset from an array - -BitSet::BitSet( sal_uInt16* pArray, sal_uInt16 nSize ): - nCount(nSize) -{ - DBG_MEMTEST(); - // find the highest bit to set - sal_uInt16 nMax = 0; - for ( sal_uInt16 n = 0; n < nCount; ++n ) - if ( pArray[n] > nMax ) - nMax = pArray[n]; - - // if there are bits at all - if ( nMax > 0 ) - { - // allocate memory for all blocks needed - nBlocks = nMax / 32 + 1; - pBitmap = new sal_uIntPtr[nBlocks]; - memset( pBitmap, 0, 4 * nBlocks ); - - // set all the bits - for ( sal_uInt16 n = 0; n < nCount; ++n ) - { - // compute the block no. and bitvalue - sal_uInt16 nBlock = n / 32; - sal_uIntPtr nBitVal = 1L << (n % 32); - - // set a single bit - if ( ( *(pBitmap+nBlock) & nBitVal ) == 0 ) - { - *(pBitmap+nBlock) |= nBitVal; - ++nCount; - } - } - } - else - { - // initalize emtpy set - nBlocks = 0; - pBitmap = 0; - } -} - -//-------------------------------------------------------------------- - // frees the storage BitSet::~BitSet() @@ -193,15 +148,6 @@ BitSet::~BitSet() //-------------------------------------------------------------------- -// creates a bitmap with all bits in rRange set - -BitSet::BitSet( const Range& ) -{ - DBG_MEMTEST(); -} - -//-------------------------------------------------------------------- - // assignment from another bitset BitSet& BitSet::operator=( const BitSet& rOrig ) |