Kaydet (Commit) 0727c09e authored tarafından Matúš Kukan's avatar Matúš Kukan

BrowseBoxCheckInvariants appears to be unused [loplugin:unreffun]

Change-Id: Ie6c546ee085b20bd3eb39cdfb7b38394c0a35b67
üst 9d48e8fd
...@@ -213,10 +213,6 @@ class SVT_DLLPUBLIC BrowseBox ...@@ -213,10 +213,6 @@ class SVT_DLLPUBLIC BrowseBox
friend class BrowserDataWin; friend class BrowserDataWin;
friend class ::svt::BrowseBoxImpl; friend class ::svt::BrowseBoxImpl;
#ifdef DBG_UTIL
friend const char* BrowseBoxCheckInvariants( const void * pVoid );
#endif
public: public:
static const sal_uInt16 HandleColumnId = 0; static const sal_uInt16 HandleColumnId = 0;
......
...@@ -33,8 +33,6 @@ ...@@ -33,8 +33,6 @@
#include "brwimpl.hxx" #include "brwimpl.hxx"
extern const char* BrowseBoxCheckInvariants( const void* pVoid );
#define SCROLL_FLAGS (SCROLL_CLIP | SCROLL_NOCHILDREN) #define SCROLL_FLAGS (SCROLL_CLIP | SCROLL_NOCHILDREN)
#define getDataWindow() ((BrowserDataWin*)pDataWin) #define getDataWindow() ((BrowserDataWin*)pDataWin)
...@@ -2391,27 +2389,6 @@ void BrowseBox::SetHeaderBar( BrowserHeader* pHeaderBar ) ...@@ -2391,27 +2389,6 @@ void BrowseBox::SetHeaderBar( BrowserHeader* pHeaderBar )
( (BrowserDataWin*)pDataWin )->pHeaderBar->SetStartDragHdl( LINK( this, BrowseBox, StartDragHdl ) ); ( (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 BrowseBox::GetTitleHeight() const
{ {
long nHeight; long nHeight;
......
...@@ -33,14 +33,6 @@ using namespace ::com::sun::star::datatransfer; ...@@ -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 */ ) void BrowseBox::StartDrag( sal_Int8 /* _nAction */, const Point& /* _rPosPixel */ )
{ {
// not interested in this event // not interested in this event
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment