summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-02-26 13:27:12 +0200
committerNoel Grandin <noel@peralex.com>2014-02-27 10:27:33 +0200
commit39ff662a15683d02ca6a9b1e407b5ed16e460779 (patch)
tree6680bdf333791a39e713f6d9f8ecea012bdb5042 /sc
parent6374c59217325721dc2c091338e665a238b7ace3 (diff)
remove unused code ScCollection::IndexOf(ScDataObject*) const
Change-Id: I142bc93cbe1ce6c0462ccc63defbd49e519f7f75
Diffstat (limited to 'sc')
-rw-r--r--sc/source/filter/starcalc/collect.cxx13
-rw-r--r--sc/source/filter/starcalc/collect.hxx1
2 files changed, 0 insertions, 14 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); }