diff options
author | Caolán McNamara <caolanm@redhat.com> | 2010-11-24 09:11:55 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2010-11-24 09:11:55 +0000 |
commit | f8acd9bc968254122fd3ce805ab9f6737eb89e40 (patch) | |
tree | 291a443d24445c94b28c2bd0f1a4c8b7ab0fe182 /svtools | |
parent | 6f5c7cda13f810b8384c5a7e0c2d3ca598879ec8 (diff) |
cppcheck: Unused private functions
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/contnr/svimpicn.cxx | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/svtools/source/contnr/svimpicn.cxx b/svtools/source/contnr/svimpicn.cxx index 95e1e2835a54..ccded0e72008 100644 --- a/svtools/source/contnr/svimpicn.cxx +++ b/svtools/source/contnr/svimpicn.cxx @@ -664,7 +664,6 @@ class ImpIcnCursor SvLBoxEntry* SearchRow(USHORT nRow,USHORT nRight,USHORT nLeft,USHORT nPref, BOOL bRight, BOOL bSimple ); - void ExpandGrid(); void CreateGridMap(); // Rueckgabe FALSE: Eintrag liegt nicht in der GridMap. rGridx,y werden // dann an nGridCols, nGridRows geclippt @@ -673,10 +672,6 @@ class ImpIcnCursor { pGridMap[ (nDY * nGridCols) + nDX ] = bUsed; } - BOOL IsGridUsed( USHORT nDX, USHORT nDY ) - { - return pGridMap[ (nDY * nGridCols) + nDX ]; - } public: ImpIcnCursor( SvImpIconView* pOwner ); ~ImpIcnCursor(); @@ -3553,20 +3548,6 @@ void ImpIcnCursor::SetDeltas() } } - -void ImpIcnCursor::ExpandGrid() -{ - if( pGridMap ) - { - long nNewGridRows = nGridRows + 20; - BOOL* pTempMap = new BOOL[ nNewGridRows * nGridCols ]; - memcpy( pTempMap, pGridMap, nGridRows * nGridCols ); - delete pGridMap; - pGridMap = pTempMap; - nGridRows = nNewGridRows; - } -} - BOOL ImpIcnCursor::FindEmptyGridRect( Rectangle& rRect ) { CreateGridMap(); @@ -3585,9 +3566,6 @@ BOOL ImpIcnCursor::FindEmptyGridRect( Rectangle& rRect ) rRect.Right() = rRect.Left() + nGridDX; SetGridUsed( nCol, nRow, TRUE ); - //XXX - //if( nRow + 5 > nGridRows ) - // ExpandGrid(); DBG_ASSERT(pGridMap[nCur],"SetGridUsed failed"); return TRUE; } @@ -3598,9 +3576,6 @@ BOOL ImpIcnCursor::FindEmptyGridRect( Rectangle& rRect ) rRect.Left() = LROFFS_WINBORDER; rRect.Right() = rRect.Left() + nGridDX; return FALSE; - //XXX - //ExpandGrid(); - //return TRUE; } void ImpIcnCursor::CreateGridAjustData( SvPtrarr& rLists, SvLBoxEntry* pRefEntry) |