Kaydet (Commit) 036f86db authored tarafından Kohei Yoshida's avatar Kohei Yoshida

Apparently CheckIntegrity() was only declared but never defined.

Let's remove it.

Change-Id: Idbc6c58fb6ce71c80534396111c4d5b17a9764c7
üst 9106fc3a
...@@ -297,8 +297,6 @@ public: ...@@ -297,8 +297,6 @@ public:
void SetCompareHdl( const Link& rLink ) { aCompareLink = rLink; } void SetCompareHdl( const Link& rLink ) { aCompareLink = rLink; }
const Link& GetCompareHdl() const { return aCompareLink; } const Link& GetCompareHdl() const { return aCompareLink; }
void Resort(); void Resort();
void CheckIntegrity() const;
}; };
class SVT_DLLPUBLIC SvListView class SVT_DLLPUBLIC SvListView
......
...@@ -322,10 +322,6 @@ sal_uLong SvTreeList::Move(SvTreeListEntry* pSrcEntry,SvTreeListEntry* pTargetPa ...@@ -322,10 +322,6 @@ sal_uLong SvTreeList::Move(SvTreeListEntry* pSrcEntry,SvTreeListEntry* pTargetPa
if (!bSameParent) if (!bSameParent)
SetListPositions(rSrc); SetListPositions(rSrc);
#ifdef CHECK_INTEGRITY
CheckIntegrity();
#endif
sal_uLong nRetVal = findEntryPosition(rDst, pSrcEntry); sal_uLong nRetVal = findEntryPosition(rDst, pSrcEntry);
OSL_ENSURE(nRetVal == pSrcEntry->GetChildListPos(), "ListPos not valid"); OSL_ENSURE(nRetVal == pSrcEntry->GetChildListPos(), "ListPos not valid");
Broadcast( LISTACTION_MOVED,pSrcEntry,pTargetParent,nRetVal); Broadcast( LISTACTION_MOVED,pSrcEntry,pTargetParent,nRetVal);
...@@ -360,9 +356,6 @@ sal_uLong SvTreeList::Copy(SvTreeListEntry* pSrcEntry,SvTreeListEntry* pTargetPa ...@@ -360,9 +356,6 @@ sal_uLong SvTreeList::Copy(SvTreeListEntry* pSrcEntry,SvTreeListEntry* pTargetPa
SetListPositions(rDst); // correct list position in target list SetListPositions(rDst); // correct list position in target list
#ifdef CHECK_INTEGRITY
CheckIntegrity();
#endif
Broadcast( LISTACTION_INSERTED_TREE, pClonedEntry ); Broadcast( LISTACTION_INSERTED_TREE, pClonedEntry );
sal_uLong nRetVal = findEntryPosition(rDst, pClonedEntry); sal_uLong nRetVal = findEntryPosition(rDst, pClonedEntry);
return nRetVal; return nRetVal;
...@@ -426,9 +419,6 @@ void SvTreeList::InsertTree(SvTreeListEntry* pSrcEntry, ...@@ -426,9 +419,6 @@ void SvTreeList::InsertTree(SvTreeListEntry* pSrcEntry,
nEntryCount += GetChildCount( pSrcEntry ); nEntryCount += GetChildCount( pSrcEntry );
nEntryCount++; // the parent is new, too nEntryCount++; // the parent is new, too
#ifdef CHECK_INTEGRITY
CheckIntegrity();
#endif
Broadcast(LISTACTION_INSERTED_TREE, pSrcEntry ); Broadcast(LISTACTION_INSERTED_TREE, pSrcEntry );
} }
...@@ -1100,9 +1090,6 @@ sal_uLong SvTreeList::Insert( SvTreeListEntry* pEntry,SvTreeListEntry* pParent,s ...@@ -1100,9 +1090,6 @@ sal_uLong SvTreeList::Insert( SvTreeListEntry* pEntry,SvTreeListEntry* pParent,s
else else
pEntry->nListPos = rList.size()-1; pEntry->nListPos = rList.size()-1;
#ifdef CHECK_INTEGRITY
CheckIntegrity();
#endif
Broadcast( LISTACTION_INSERTED, pEntry ); Broadcast( LISTACTION_INSERTED, pEntry );
return nPos; // pEntry->nListPos; return nPos; // pEntry->nListPos;
} }
...@@ -1136,10 +1123,7 @@ void SvTreeList::SetAbsolutePositions() ...@@ -1136,10 +1123,7 @@ void SvTreeList::SetAbsolutePositions()
nPos++; nPos++;
pEntry = Next( pEntry ); pEntry = Next( pEntry );
} }
bAbsPositionsValid = sal_True; bAbsPositionsValid = true;
#ifdef CHECK_INTEGRITY
CheckIntegrity();
#endif
} }
...@@ -1166,9 +1150,6 @@ void SvTreeList::Expand( SvListView* pView, SvTreeListEntry* pEntry ) ...@@ -1166,9 +1150,6 @@ void SvTreeList::Expand( SvListView* pView, SvTreeListEntry* pEntry )
pView->bVisPositionsValid = sal_False; pView->bVisPositionsValid = sal_False;
pView->nVisibleCount = 0; pView->nVisibleCount = 0;
} }
#ifdef CHECK_INTEGRITY
CheckIntegrity();
#endif
} }
/************************************************************************* /*************************************************************************
...@@ -1194,9 +1175,6 @@ void SvTreeList::Collapse( SvListView* pView, SvTreeListEntry* pEntry ) ...@@ -1194,9 +1175,6 @@ void SvTreeList::Collapse( SvListView* pView, SvTreeListEntry* pEntry )
pView->nVisibleCount = 0; pView->nVisibleCount = 0;
pView->bVisPositionsValid = sal_False; pView->bVisPositionsValid = sal_False;
} }
#ifdef CHECK_INTEGRITY
CheckIntegrity();
#endif
} }
...@@ -1230,9 +1208,6 @@ sal_Bool SvTreeList::Select( SvListView* pView, SvTreeListEntry* pEntry, sal_Boo ...@@ -1230,9 +1208,6 @@ sal_Bool SvTreeList::Select( SvListView* pView, SvTreeListEntry* pEntry, sal_Boo
pView->nSelectionCount--; pView->nSelectionCount--;
} }
} }
#ifdef CHECK_INTEGRITY
CheckIntegrity();
#endif
return sal_True; return sal_True;
} }
...@@ -1281,11 +1256,6 @@ bool SvTreeList::Remove( const SvTreeListEntry* pEntry ) ...@@ -1281,11 +1256,6 @@ bool SvTreeList::Remove( const SvTreeListEntry* pEntry )
SetListPositions(rList); SetListPositions(rList);
nEntryCount -= nRemoved; nEntryCount -= nRemoved;
#ifdef CHECK_INTEGRITY
CheckIntegrity();
#endif
return true; return true;
} }
...@@ -1313,9 +1283,6 @@ void SvTreeList::SelectAll( SvListView* pView, sal_Bool bSelect ) ...@@ -1313,9 +1283,6 @@ void SvTreeList::SelectAll( SvListView* pView, sal_Bool bSelect )
pView->nSelectionCount = nEntryCount; pView->nSelectionCount = nEntryCount;
else else
pView->nSelectionCount = 0; pView->nSelectionCount = 0;
#ifdef CHECK_INTEGRITY
CheckIntegrity();
#endif
} }
......
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