diff options
author | Arnaud Versini <arnaud.versini@gmail.com> | 2016-07-10 16:32:32 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-07-11 07:28:16 +0000 |
commit | 9b0995439e02981c47f6234b33e6e8988fadf315 (patch) | |
tree | 1b77d0b5b18d7ad4d47bde0e0de52242ee02c505 /basic | |
parent | f41eb66302208f384a475fb20c98b6d1b0676cb6 (diff) |
BASIC : Remove useless 16bits Remove function from SbxArray
Change-Id: I050a034437d3370a28c9e5ab47abee369e634f7d
Reviewed-on: https://gerrit.libreoffice.org/27089
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'basic')
-rw-r--r-- | basic/source/classes/sb.cxx | 2 | ||||
-rw-r--r-- | basic/source/sbx/sbxarray.cxx | 9 |
2 files changed, 3 insertions, 8 deletions
diff --git a/basic/source/classes/sb.cxx b/basic/source/classes/sb.cxx index 9bf4cda4ae42..6d2aaa6c84d5 100644 --- a/basic/source/classes/sb.cxx +++ b/basic/source/classes/sb.cxx @@ -2267,7 +2267,7 @@ void BasicCollection::CollRemove( SbxArray* pPar_ ) sal_Int32 nIndex = implGetIndex( p ); if( nIndex >= 0 && nIndex < (sal_Int32)xItemArray->Count32() ) { - xItemArray->Remove32( nIndex ); + xItemArray->Remove( nIndex ); // Correct for stack if necessary SbiInstance* pInst = GetSbData()->pInst; diff --git a/basic/source/sbx/sbxarray.cxx b/basic/source/sbx/sbxarray.cxx index b1cce09ea3e6..754bc5aa8211 100644 --- a/basic/source/sbx/sbxarray.cxx +++ b/basic/source/sbx/sbxarray.cxx @@ -283,7 +283,7 @@ void SbxArray::Insert( SbxVariable* pVar, sal_uInt16 nIdx ) Insert32( pVar, nIdx ); } -void SbxArray::Remove32( sal_uInt32 nIdx ) +void SbxArray::Remove( sal_uInt32 nIdx ) { if( nIdx < mpVarEntries->size() ) { @@ -292,11 +292,6 @@ void SbxArray::Remove32( sal_uInt32 nIdx ) } } -void SbxArray::Remove( sal_uInt16 nIdx ) -{ - Remove32(nIdx); -} - void SbxArray::Remove( SbxVariable* pVar ) { if( pVar ) @@ -305,7 +300,7 @@ void SbxArray::Remove( SbxVariable* pVar ) { if (&(*mpVarEntries)[i].mpVar == pVar) { - Remove32( i ); break; + Remove( i ); break; } } } |