diff options
author | Alexander Bergmann <myaddons@gmx.de> | 2012-02-13 13:17:19 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-02-13 13:17:19 +0000 |
commit | 8f1270db7d871df1a6155c1e4f51568753a54b04 (patch) | |
tree | 78374e63f2580e2dd3c80881194bcf3c5a92bb04 /tools | |
parent | 507a5d0eb718bcd6c294029775008e0f99d70e0f (diff) |
unusedcode.easy: Removed unused code
Diffstat (limited to 'tools')
-rw-r--r-- | tools/inc/tools/multisel.hxx | 2 | ||||
-rw-r--r-- | tools/source/memtools/multisel.cxx | 45 |
2 files changed, 0 insertions, 47 deletions
diff --git a/tools/inc/tools/multisel.hxx b/tools/inc/tools/multisel.hxx index 20f1c63f4452..8410019cd9d8 100644 --- a/tools/inc/tools/multisel.hxx +++ b/tools/inc/tools/multisel.hxx @@ -91,7 +91,6 @@ public: void SetTotalRange( const Range& rTotRange ); void Insert( long nIndex, long nCount = 1 ); void Remove( long nIndex ); - void Append( long nCount = 1 ); const Range& GetTotalRange() const { return aTotRange; } sal_Bool IsCurValid() const { return bCurValid; } @@ -99,7 +98,6 @@ public: long FirstSelected( sal_Bool bInverse = sal_False ); long LastSelected(); long NextSelected(); - long PrevSelected(); size_t GetRangeCount() const { return aSels.size(); } const Range& GetRange( size_t nRange ) const { diff --git a/tools/source/memtools/multisel.cxx b/tools/source/memtools/multisel.cxx index 3853fe493dbf..fd61bcbb227f 100644 --- a/tools/source/memtools/multisel.cxx +++ b/tools/source/memtools/multisel.cxx @@ -521,21 +521,6 @@ void MultiSelection::Remove( long nIndex ) // ----------------------------------------------------------------------- -void MultiSelection::Append( long nCount ) -{ - long nPrevLast = aTotRange.Max(); - aTotRange.Max() += nCount; - if ( bSelectNew ) - { - nSelCount += nCount; - aSels.push_back( new Range( nPrevLast+1, nPrevLast + nCount ) ); - if ( aSels.size() > 1 ) - ImplMergeSubSelections( aSels.size() - 2, aSels.size() ); - } -} - -// ----------------------------------------------------------------------- - long MultiSelection::ImplFwdUnselected() { if ( !bCurValid ) @@ -637,36 +622,6 @@ long MultiSelection::NextSelected() // ----------------------------------------------------------------------- -long MultiSelection::PrevSelected() -{ - if ( !bCurValid ) - return SFX_ENDOFSELECTION; - - if ( bInverseCur ) - { - --nCurIndex; - return ImplBwdUnselected(); - } - else - { - // is the previous index in the current sub selection too? - if ( nCurIndex > aSels[ nCurSubSel ]->Min() ) - return --nCurIndex; - - // are there previous sub selections? - if ( nCurSubSel > 0 ) - { - --nCurSubSel; - return nCurIndex = aSels[ nCurSubSel ]->Max(); - } - - // we are at the beginning! - return SFX_ENDOFSELECTION; - } -} - -// ----------------------------------------------------------------------- - void MultiSelection::SetTotalRange( const Range& rTotRange ) { aTotRange = rTotRange; |