summaryrefslogtreecommitdiffstats
path: root/sc
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2012-02-20 15:05:13 +0100
committerThomas Arnhold <thomas@arnhold.org>2012-02-20 22:19:34 +0100
commite7e4871b2880f5690030b1b16978f2575eea3948 (patch)
treeea96b96dd53fcb36034b39b614ec40f08db73158 /sc
parentunusedcode.easy: SwProtocol::GetVar (diff)
downloadcore-e7e4871b2880f5690030b1b16978f2575eea3948.tar.gz
core-e7e4871b2880f5690030b1b16978f2575eea3948.zip
unusedcode.easy: some cleaning
Diffstat (limited to 'sc')
-rw-r--r--sc/inc/chgtrack.hxx1
-rw-r--r--sc/inc/document.hxx1
-rw-r--r--sc/source/core/data/documen3.cxx17
-rw-r--r--sc/source/core/tool/chgtrack.cxx6
-rw-r--r--sc/source/filter/starcalc/collect.cxx26
-rw-r--r--sc/source/filter/starcalc/collect.hxx4
6 files changed, 0 insertions, 55 deletions
diff --git a/sc/inc/chgtrack.hxx b/sc/inc/chgtrack.hxx
index 1c0b664b618c..3b9b89dba8f2 100644
--- a/sc/inc/chgtrack.hxx
+++ b/sc/inc/chgtrack.hxx
@@ -816,7 +816,6 @@ public:
// don't use:
// assigns string / creates forumula cell
void SetOldValue( const rtl::OUString& rOld, ScDocument* pDoc );
- void SetNewValue( const rtl::OUString& rNew, ScDocument* pDoc );
void GetOldString( rtl::OUString& rStr ) const;
void GetNewString( rtl::OUString& rStr ) const;
diff --git a/sc/inc/document.hxx b/sc/inc/document.hxx
index 343a62da07e8..34193d8fee2f 100644
--- a/sc/inc/document.hxx
+++ b/sc/inc/document.hxx
@@ -467,7 +467,6 @@ public:
* non-empty range name set.
*/
SC_DLLPUBLIC void GetAllTabRangeNames(ScRangeName::TabNameCopyMap& rRangeNames) const;
- SC_DLLPUBLIC void SetAllTabRangeNames(const ScRangeName::TabNameCopyMap& rRangeNames);
SC_DLLPUBLIC void SetAllRangeNames( const boost::ptr_map<rtl::OUString, ScRangeName>& rRangeMap);
SC_DLLPUBLIC void GetTabRangeNameMap(std::map<rtl::OUString, ScRangeName*>& rRangeName);
SC_DLLPUBLIC void GetRangeNameMap(std::map<rtl::OUString, ScRangeName*>& rRangeName);
diff --git a/sc/source/core/data/documen3.cxx b/sc/source/core/data/documen3.cxx
index 9d7d564c2d1d..e9a665343dae 100644
--- a/sc/source/core/data/documen3.cxx
+++ b/sc/source/core/data/documen3.cxx
@@ -129,23 +129,6 @@ void ScDocument::GetAllTabRangeNames(ScRangeName::TabNameCopyMap& rNames) const
rNames.swap(aNames);
}
-void ScDocument::SetAllTabRangeNames(const ScRangeName::TabNameCopyMap& rNames)
-{
- // Remove all existing range names first.
- for (SCTAB i = 0; i < static_cast<SCTAB>(maTabs.size()); ++i)
- {
- if (!maTabs[i])
- // no more tables to iterate through.
- break;
-
- maTabs[i]->SetRangeName(NULL);
- }
-
- ScRangeName::TabNameCopyMap::const_iterator itr = rNames.begin(), itrEnd = rNames.end();
- for (; itr != itrEnd; ++itr)
- SetRangeName(itr->first, new ScRangeName(*itr->second));
-}
-
void ScDocument::SetAllRangeNames( const boost::ptr_map<rtl::OUString, ScRangeName>& rRangeMap)
{
rtl::OUString aGlobalStr(RTL_CONSTASCII_USTRINGPARAM(STR_GLOBAL_RANGE_NAME));
diff --git a/sc/source/core/tool/chgtrack.cxx b/sc/source/core/tool/chgtrack.cxx
index 9a2ccb5aac6a..65670be6a209 100644
--- a/sc/source/core/tool/chgtrack.cxx
+++ b/sc/source/core/tool/chgtrack.cxx
@@ -1523,12 +1523,6 @@ void ScChangeActionContent::SetOldValue( const rtl::OUString& rOld, ScDocument*
}
-void ScChangeActionContent::SetNewValue( const rtl::OUString& rNew, ScDocument* pDoc )
-{
- SetValueString( aNewValue, pNewCell, rNew, pDoc );
-}
-
-
void ScChangeActionContent::GetOldString( rtl::OUString& rStr ) const
{
GetValueString( rStr, aOldValue, pOldCell );
diff --git a/sc/source/filter/starcalc/collect.cxx b/sc/source/filter/starcalc/collect.cxx
index 090ebfad1a2e..fb76f0c45c7c 100644
--- a/sc/source/filter/starcalc/collect.cxx
+++ b/sc/source/filter/starcalc/collect.cxx
@@ -89,32 +89,6 @@ ScCollection::~ScCollection()
//------------------------------------------------------------------------
sal_uInt16 ScCollection::GetCount() const { return nCount; }
-void ScCollection::AtFree(sal_uInt16 nIndex)
-{
- if ((pItems) && (nIndex < nCount))
- {
- delete pItems[nIndex];
- --nCount; // before memmove
- memmove ( &pItems[nIndex], &pItems[nIndex + 1], (nCount - nIndex) * sizeof(ScDataObject*));
- pItems[nCount] = NULL;
- }
-}
-
-//------------------------------------------------------------------------
-
-void ScCollection::Free(ScDataObject* pScDataObject)
-{
- AtFree(IndexOf(pScDataObject));
-}
-
-//------------------------------------------------------------------------
-
-void ScCollection::FreeAll()
-{
- lcl_DeleteScDataObjects( pItems, nCount );
- nCount = 0;
- pItems = new ScDataObject*[nLimit];
-}
//------------------------------------------------------------------------
diff --git a/sc/source/filter/starcalc/collect.hxx b/sc/source/filter/starcalc/collect.hxx
index 6444efd4ad14..3ec9369ce6ba 100644
--- a/sc/source/filter/starcalc/collect.hxx
+++ b/sc/source/filter/starcalc/collect.hxx
@@ -53,10 +53,6 @@ public:
virtual ScDataObject* Clone() const;
- void AtFree(sal_uInt16 nIndex);
- void Free(ScDataObject* pScDataObject);
- void FreeAll();
-
sal_Bool AtInsert(sal_uInt16 nIndex, ScDataObject* pScDataObject);
virtual sal_Bool Insert(ScDataObject* pScDataObject);