summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-03-25 11:39:11 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-03-25 16:17:08 +0100
commit0e36a13a80465854ba510676fa2baa2e21e67d11 (patch)
treeb3b3e3e4b5dcdacfb579dc5b497453c7a088b6a9 /tools
parent19d8bae1111a5bb366cb63f640cdebbfb93fb7e1 (diff)
MI_DEBUG is never defined
Change-Id: I6f5d74e892d9bdca5a39caa76feb4e3d05b95ba9
Diffstat (limited to 'tools')
-rw-r--r--tools/source/memtools/multisel.cxx51
1 files changed, 0 insertions, 51 deletions
diff --git a/tools/source/memtools/multisel.cxx b/tools/source/memtools/multisel.cxx
index 9aac9de25224..916f64755dc1 100644
--- a/tools/source/memtools/multisel.cxx
+++ b/tools/source/memtools/multisel.cxx
@@ -17,46 +17,11 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifdef MI_DEBUG
-#define private public
-#include <stdio.h>
-#endif
-
#include <tools/debug.hxx>
#include <tools/multisel.hxx>
#include "rtl/ustrbuf.hxx"
-#ifdef MI_DEBUG
-#define DBG(x) x
-#else
-#define DBG(x)
-#endif
-
-
-#ifdef MI_DEBUG
-static void Print( const MultiSelection* pSel )
-{
- DbgOutf( "TotRange: %4ld-%4ld\n",
- pSel->aTotRange.Min(), pSel->aTotRange.Max() );
- if ( pSel->bCurValid )
- {
- DbgOutf( "CurSubSel: %4ld\n", pSel->nCurSubSel );
- DbgOutf( "CurIndex: %4ld\n", pSel->nCurIndex );
- }
- DbgOutf( "SelCount: %4ld\n", pSel->nSelCount );
- DbgOutf( "SubCount: %4ld\n", pSel->aSels.Count() );
- for ( sal_uIntPtr nPos = 0; nPos < pSel->aSels.Count(); ++nPos )
- {
- DbgOutf( "SubSel #%2ld: %4ld-%4ld\n", nPos,
- pSel->aSels.GetObject(nPos)->Min(),
- pSel->aSels.GetObject(nPos)->Max() );
- }
- DbgOutf( "\n" );
- fclose( pFile );
-}
-#endif
-
void MultiSelection::ImplClear()
{
// no selected indexes
@@ -186,16 +151,12 @@ bool MultiSelection::operator== ( MultiSelection& rWith )
void MultiSelection::SelectAll( bool bSelect )
{
- DBG(DbgOutf( "::SelectAll(%s)\n", bSelect ? "sal_True" : "sal_False" ));
-
ImplClear();
if ( bSelect )
{
aSels.push_back( new Range(aTotRange) );
nSelCount = aTotRange.Len();
}
-
- DBG(Print( this ));
}
bool MultiSelection::Select( long nIndex, bool bSelect )
@@ -256,7 +217,6 @@ bool MultiSelection::Select( long nIndex, bool bSelect )
|| !aSels[ nSubSelPos ]->IsInside( nIndex )
) {
// not selected, nothing to do
- DBG(Print( this ));
return false;
}
@@ -271,7 +231,6 @@ bool MultiSelection::Select( long nIndex, bool bSelect )
::std::advance( it, nSubSelPos );
delete *it;
aSels.erase( it );
- DBG(Print( this ));
return true;
}
@@ -296,8 +255,6 @@ bool MultiSelection::Select( long nIndex, bool bSelect )
}
}
- DBG(Print( this ));
-
return true;
}
@@ -389,8 +346,6 @@ bool MultiSelection::IsSelected( long nIndex ) const
void MultiSelection::Insert( long nIndex, long nCount )
{
- DBG(DbgOutf( "::Insert(%ld, %ld)\n", nIndex, nCount ));
-
// find the virtual target position
size_t nSubSelPos = ImplFindSubSelection( nIndex );
@@ -439,14 +394,10 @@ void MultiSelection::Insert( long nIndex, long nCount )
aTotRange.Max() += nCount;
if ( bSelectNew )
nSelCount += nCount;
-
- DBG(Print( this ));
}
void MultiSelection::Remove( long nIndex )
{
- DBG(DbgOutf( "::Remove(%ld)\n", nIndex ));
-
// find the virtual target position
size_t nSubSelPos = ImplFindSubSelection( nIndex );
@@ -479,8 +430,6 @@ void MultiSelection::Remove( long nIndex )
bCurValid = false;
aTotRange.Max() -= 1;
-
- DBG(Print( this ));
}
long MultiSelection::ImplFwdUnselected()