diff options
author | Noel Grandin <noel@peralex.com> | 2014-02-26 13:27:12 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-02-27 10:27:33 +0200 |
commit | 39ff662a15683d02ca6a9b1e407b5ed16e460779 (patch) | |
tree | 6680bdf333791a39e713f6d9f8ecea012bdb5042 | |
parent | 6374c59217325721dc2c091338e665a238b7ace3 (diff) |
remove unused code ScCollection::IndexOf(ScDataObject*) const
Change-Id: I142bc93cbe1ce6c0462ccc63defbd49e519f7f75
-rw-r--r-- | sc/source/filter/starcalc/collect.cxx | 13 | ||||
-rw-r--r-- | sc/source/filter/starcalc/collect.hxx | 1 | ||||
-rw-r--r-- | unusedcode.easy | 1 |
3 files changed, 0 insertions, 15 deletions
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<ooo::vba::excel::XStyle>::getAddIndent() |