diff --git a/sc/source/filter/starcalc/collect.cxx b/sc/source/filter/starcalc/collect.cxx index a46410591b11..e64e0962573e 100644 --- a/sc/source/filter/starcalc/collect.cxx +++ b/sc/source/filter/starcalc/collect.cxx @@ -124,19 +124,6 @@ ScDataObject* ScCollection::At(sal_uInt16 nIndex) const } - -sal_uInt16 ScCollection::IndexOf(ScDataObject* pScDataObject) const -{ - sal_uInt16 nIndex = 0xffff; - for (sal_uInt16 i = 0; ((i < nCount) && (nIndex == 0xffff)); i++) - { - if (pItems[i] == pScDataObject) nIndex = i; - } - return nIndex; -} - - - ScCollection& ScCollection::operator=( const ScCollection& r ) { // Check for self-assignment diff --git a/sc/source/filter/starcalc/collect.hxx b/sc/source/filter/starcalc/collect.hxx index 33001f881b4c..8e7d3086f488 100644 --- a/sc/source/filter/starcalc/collect.hxx +++ b/sc/source/filter/starcalc/collect.hxx @@ -48,7 +48,6 @@ public: bool Insert(ScDataObject* pScDataObject); ScDataObject* At(sal_uInt16 nIndex) const; - sal_uInt16 IndexOf(ScDataObject* pScDataObject) const; sal_uInt16 GetCount() const; ScDataObject* operator[]( const sal_uInt16 nIndex) const { return At(nIndex); } diff --git a/unusedcode.easy b/unusedcode.easy index b9d71fc3c51e..59e7e4d38d8f 100644 --- a/unusedcode.easy +++ b/unusedcode.easy @@ -66,7 +66,6 @@ ScCellValue::ScCellValue(ScFormulaCell const&) ScCellValue::hasNumeric() const ScCellValue::hasString() const ScCellValue::set(ScFormulaCell const&) -ScCollection::IndexOf(ScDataObject*) const ScDocument::CreateFormatTable() const ScExtIButton::GetSelected() const ScVbaFormat::getAddIndent()