diff options
-rw-r--r-- | sc/inc/dpcache.hxx | 2 | ||||
-rw-r--r-- | sc/source/core/data/dpcache.cxx | 38 |
2 files changed, 0 insertions, 40 deletions
diff --git a/sc/inc/dpcache.hxx b/sc/inc/dpcache.hxx index 1e26688890f1..bd2fa5a6174d 100644 --- a/sc/inc/dpcache.hxx +++ b/sc/inc/dpcache.hxx @@ -152,8 +152,6 @@ public: const ScDPItemData* GetItemDataById( long nDim, SCROW nId ) const; - bool operator== ( const ScDPCache& r ) const; - ScDPCache(ScDocument* pDoc); ~ScDPCache(); diff --git a/sc/source/core/data/dpcache.cxx b/sc/source/core/data/dpcache.cxx index 928e511e0bab..40ca0395b2d3 100644 --- a/sc/source/core/data/dpcache.cxx +++ b/sc/source/core/data/dpcache.cxx @@ -67,44 +67,6 @@ ScDPCache::GroupItems::GroupItems() {} ScDPCache::GroupItems::GroupItems(const ScDPNumGroupInfo& rInfo) : maInfo(rInfo) {} -bool ScDPCache::operator== ( const ScDPCache& r ) const -{ - if ( GetColumnCount() == r.GetColumnCount() ) - { - for ( SCCOL i = 0 ; i < GetColumnCount(); i++ ) - { //check dim names - if ( GetDimensionName( i ) != r.GetDimensionName( i ) ) - return false; - //check rows count - if ( GetRowCount() != r.GetRowCount() ) - return false; - //check dim member values - size_t nMembersCount = GetDimMemberValues( i ).size(); - if ( GetDimMemberValues( i ).size() == r. GetDimMemberValues( i ).size() ) - { - for ( size_t j = 0; j < nMembersCount; j++ ) - { - if (GetDimMemberValues(i)[j] == r.GetDimMemberValues(i)[j]) - continue; - else - return false; - } - } - else - return false; - //check source table index - for ( SCROW k=0 ; k < GetRowCount(); k ++ ) - { - if ( GetItemDataId( i, k, false ) == r.GetItemDataId( i,k,false) ) - continue; - else - return false; - } - } - } - return true; -} - ScDPCache::Field::Field() : mnNumFormat(0) {} ScDPCache::ScDPCache(ScDocument* pDoc) : |