summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-02-25 16:07:51 +0200
committerNoel Grandin <noel@peralex.com>2014-02-26 08:55:06 +0200
commit0a0290b25221265980a33c76a9897dafa9d16303 (patch)
treee5a1d53fc546d1fd0b41d2c66ffed6180c9d63e5 /sc
parent10bf29702432f00d21c1b227d775907767d5888f (diff)
remove unused code ScDocument::CountNotes()
Change-Id: Ic0f638f1e052b2d9117207f234d879638cbfc19a
Diffstat (limited to 'sc')
-rw-r--r--sc/inc/document.hxx1
-rw-r--r--sc/source/core/data/document.cxx12
2 files changed, 0 insertions, 13 deletions
diff --git a/sc/inc/document.hxx b/sc/inc/document.hxx
index 863569ad4cd2..4b777d08844c 100644
--- a/sc/inc/document.hxx
+++ b/sc/inc/document.hxx
@@ -912,7 +912,6 @@ public:
SC_DLLPUBLIC ScPostIt* ReleaseNote(const ScAddress& rPos);
SC_DLLPUBLIC ScPostIt* GetOrCreateNote(const ScAddress& rPos);
SC_DLLPUBLIC ScPostIt* CreateNote(const ScAddress& rPos);
- size_t CountNotes() const;
size_t GetNoteCount( SCTAB nTab, SCCOL nCol ) const;
/**
diff --git a/sc/source/core/data/document.cxx b/sc/source/core/data/document.cxx
index 1bb6ae5ae41a..bd5dd1f093a1 100644
--- a/sc/source/core/data/document.cxx
+++ b/sc/source/core/data/document.cxx
@@ -6215,18 +6215,6 @@ ScPostIt* ScDocument::CreateNote(const ScAddress& rPos)
return pPostIt;
}
-size_t ScDocument::CountNotes() const
-{
- size_t nCount = 0;
- SCTAB nTabCount = GetTableCount();
- for (SCTAB nTab=0; nTab<nTabCount; nTab++)
- {
- for (SCCOL nCol=0; nCol<MAXCOLCOUNT; nCol++)
- nCount += GetNoteCount(nTab, nCol);
- }
- return nCount;
-}
-
size_t ScDocument::GetNoteCount( SCTAB nTab, SCCOL nCol ) const
{
const ScTable* pTab = FetchTable(nTab);