diff options
author | Matúš Kukan <matus.kukan@collabora.com> | 2014-05-13 15:37:44 +0200 |
---|---|---|
committer | Matúš Kukan <matus.kukan@collabora.com> | 2014-05-13 16:01:43 +0200 |
commit | 0727c09e244b52f1a10faead9123f9f502ffd56b (patch) | |
tree | f0e4ecefb77e88b65f0283bf900d9cd80e65d7ee /svtools | |
parent | 9d48e8fdf4e1efed5fc82e2ca00f2252debc94da (diff) |
BrowseBoxCheckInvariants appears to be unused [loplugin:unreffun]
Change-Id: Ie6c546ee085b20bd3eb39cdfb7b38394c0a35b67
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/brwbox/brwbox1.cxx | 23 | ||||
-rw-r--r-- | svtools/source/brwbox/brwbox2.cxx | 8 |
2 files changed, 0 insertions, 31 deletions
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 |