diff options
-rw-r--r-- | include/svtools/brwbox.hxx | 4 | ||||
-rw-r--r-- | svtools/source/brwbox/brwbox1.cxx | 23 | ||||
-rw-r--r-- | svtools/source/brwbox/brwbox2.cxx | 8 |
3 files changed, 0 insertions, 35 deletions
diff --git a/include/svtools/brwbox.hxx b/include/svtools/brwbox.hxx index 61f3657036ee..f16c001bd45c 100644 --- a/include/svtools/brwbox.hxx +++ b/include/svtools/brwbox.hxx @@ -213,10 +213,6 @@ class SVT_DLLPUBLIC BrowseBox friend class BrowserDataWin; friend class ::svt::BrowseBoxImpl; -#ifdef DBG_UTIL - friend const char* BrowseBoxCheckInvariants( const void * pVoid ); -#endif - public: static const sal_uInt16 HandleColumnId = 0; diff --git a/svtools/source/brwbox/brwbox1.cxx b/svtools/source/brwbox/brwbox1.cxx index d529c49c11f8..a5f68dd860f2 100644 --- a/svtools/source/brwbox/brwbox1.cxx +++ b/svtools/source/brwbox/brwbox1.cxx @@ -33,8 +33,6 @@ #include "brwimpl.hxx" -extern const char* BrowseBoxCheckInvariants( const void* pVoid ); - #define SCROLL_FLAGS (SCROLL_CLIP | SCROLL_NOCHILDREN) #define getDataWindow() ((BrowserDataWin*)pDataWin) @@ -2391,27 +2389,6 @@ void BrowseBox::SetHeaderBar( BrowserHeader* pHeaderBar ) ( (BrowserDataWin*)pDataWin )->pHeaderBar->SetStartDragHdl( LINK( this, BrowseBox, StartDragHdl ) ); } - -#ifdef DBG_UTIL -const char* BrowseBoxCheckInvariants( const void * pVoid ) -{ - const BrowseBox * p = (const BrowseBox *)pVoid; - - if (p->nRowCount < 0) return "BrowseBox: nRowCount < 0"; - if (p->nTopRow < 0) return "BrowseBox: nTopRow < 0"; - if (p->nTopRow >= p->nRowCount && p->nRowCount != 0) return "BrowseBox: nTopRow >= nRowCount && nRowCount != 0"; - if (p->nCurRow < -1) return "BrowseBox: nCurRow < -1"; - if (p->nCurRow > p->nRowCount) return "BrowseBox: nCurRow > nRowCount"; - - // Sadly not always the case when editing: - //if (p->nCurRow < 0 && p->nRowCount != 0) return "nCurRow < 0 && nRowCount != 0"; - //if (p->nCurRow >= p->nRowCount && p->nRowCount != 0) return "nCurRow >= nRowCount && nRowCount != 0"; - - return NULL; -} -#endif - - long BrowseBox::GetTitleHeight() const { long nHeight; diff --git a/svtools/source/brwbox/brwbox2.cxx b/svtools/source/brwbox/brwbox2.cxx index 33e4935b5dd2..ef9a6d419108 100644 --- a/svtools/source/brwbox/brwbox2.cxx +++ b/svtools/source/brwbox/brwbox2.cxx @@ -33,14 +33,6 @@ using namespace ::com::sun::star::datatransfer; - - - - -extern const char* BrowseBoxCheckInvariants( const void * pVoid ); - - - void BrowseBox::StartDrag( sal_Int8 /* _nAction */, const Point& /* _rPosPixel */ ) { // not interested in this event |