diff options
author | Kohei Yoshida <kohei.yoshida@collabora.com> | 2013-10-09 16:16:46 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@collabora.com> | 2013-10-11 12:14:25 -0400 |
commit | 512ccd16de2d64a1fd64da92eeb61680b43797ee (patch) | |
tree | f0423a82b60cc0fe0f22768ef36abacc8cdb45ca /sc/source/filter/ftools | |
parent | 0eabc71b59b97e51b8ee9630873dc8db3401f8f3 (diff) |
Make the same change to the orcus interface & remove unused methods.
Change-Id: I1263026133b694e531c0a99b16d622e1ae12db48
Diffstat (limited to 'sc/source/filter/ftools')
-rw-r--r-- | sc/source/filter/ftools/sharedformulagroups.cxx | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/sc/source/filter/ftools/sharedformulagroups.cxx b/sc/source/filter/ftools/sharedformulagroups.cxx index b80bdb50eb87..9a00ade2f0a8 100644 --- a/sc/source/filter/ftools/sharedformulagroups.cxx +++ b/sc/source/filter/ftools/sharedformulagroups.cxx @@ -11,50 +11,17 @@ namespace sc { -SharedFormulaGroups::Key::Key(size_t nId, SCCOL nCol) : mnId(nId), mnCol(nCol) {} - -bool SharedFormulaGroups::Key::operator== ( const Key& rOther ) const -{ - return mnId == rOther.mnId && mnCol == rOther.mnCol; -} - -bool SharedFormulaGroups::Key::operator!= ( const Key& rOther ) const -{ - return !operator==(rOther); -} - -size_t SharedFormulaGroups::KeyHash::operator ()( const Key& rKey ) const -{ - double nVal = rKey.mnId; - nVal *= 256.0; - nVal += rKey.mnCol; - return static_cast<size_t>(nVal); -} - void SharedFormulaGroups::set( size_t nSharedId, ScTokenArray* pArray ) { maStore.insert(nSharedId, pArray); } -void SharedFormulaGroups::set( size_t nSharedId, SCCOL nCol, const ScFormulaCellGroupRef& xGroup ) -{ - Key aKey(nSharedId, nCol); - maColStore.insert(ColStoreType::value_type(aKey, xGroup)); -} - const ScTokenArray* SharedFormulaGroups::get( size_t nSharedId ) const { StoreType::const_iterator it = maStore.find(nSharedId); return it == maStore.end() ? NULL : it->second; } -ScFormulaCellGroupRef SharedFormulaGroups::get( size_t nSharedId, SCCOL nCol ) const -{ - Key aKey(nSharedId, nCol); - ColStoreType::const_iterator it = maColStore.find(aKey); - return it == maColStore.end() ? ScFormulaCellGroupRef() : it->second; -} - } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |