[Libreoffice-commits] core.git: include/svtools svtools/source

Matúš Kukan matus.kukan at collabora.com
Tue May 13 07:02:34 PDT 2014


 include/svtools/brwbox.hxx        |    4 ----
 svtools/source/brwbox/brwbox1.cxx |   23 -----------------------
 svtools/source/brwbox/brwbox2.cxx |    8 --------
 3 files changed, 35 deletions(-)

New commits:
commit 0727c09e244b52f1a10faead9123f9f502ffd56b
Author: Matúš Kukan <matus.kukan at collabora.com>
Date:   Tue May 13 15:37:44 2014 +0200

    BrowseBoxCheckInvariants appears to be unused [loplugin:unreffun]
    
    Change-Id: Ie6c546ee085b20bd3eb39cdfb7b38394c0a35b67

diff --git a/include/svtools/brwbox.hxx b/include/svtools/brwbox.hxx
index 61f3657..f16c001 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 d529c49..a5f68dd 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 33e4935..ef9a6d4 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


More information about the Libreoffice-commits mailing list