diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-11-23 15:46:49 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-11-23 23:16:43 +0000 |
commit | 402ad3989d68f3576012c41724a351956e45d0da (patch) | |
tree | 9923a2f4b0b4ef7ee7dc69804e60f244bc163e5b /sc | |
parent | c8e7d34e3a238c9383151a09f99e7951877a6821 (diff) |
unused ScRangeName::copyLocalNames
Diffstat (limited to 'sc')
-rw-r--r-- | sc/inc/rangenam.hxx | 2 | ||||
-rw-r--r-- | sc/source/core/tool/rangenam.cxx | 15 |
2 files changed, 0 insertions, 17 deletions
diff --git a/sc/inc/rangenam.hxx b/sc/inc/rangenam.hxx index 4214af3755af..608680e72e6d 100644 --- a/sc/inc/rangenam.hxx +++ b/sc/inc/rangenam.hxx @@ -193,8 +193,6 @@ public: /// Map that stores non-managed pointers to ScRangeName instances. typedef ::std::map<SCTAB, const ScRangeName*> TabNameCopyMap; - static void copyLocalNames(const TabNameMap& rNames, TabNameCopyMap& rCopy); - typedef DataType::const_iterator const_iterator; typedef DataType::iterator iterator; diff --git a/sc/source/core/tool/rangenam.cxx b/sc/source/core/tool/rangenam.cxx index 1d2d99c8b6e2..a6398f856824 100644 --- a/sc/source/core/tool/rangenam.cxx +++ b/sc/source/core/tool/rangenam.cxx @@ -759,21 +759,6 @@ public: } -void ScRangeName::copyLocalNames(const TabNameMap& rNames, TabNameCopyMap& rCopy) -{ - TabNameMap::const_iterator itr = rNames.begin(), itrEnd = rNames.end(); - for (; itr != itrEnd; ++itr) - { - const ScRangeName* p = itr->second; - if (!p || p->empty()) - // Skip empty ones. - continue; - - rCopy.insert( - TabNameCopyMap::value_type(itr->first, p)); - } -} - ScRangeName::ScRangeName() {} ScRangeName::ScRangeName(const ScRangeName& r) : |