summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@gmail.com>2012-10-31 21:34:59 -0400
committerKohei Yoshida <kohei.yoshida@gmail.com>2012-10-31 22:12:45 -0400
commit8617c5a251ce725aa7c6743be28abd3db116255f (patch)
tree2e5b37141eb137692a29c04565fe2201f10a257d /sc
parent6c2c355375950e84fd9b8cd0a2d4717ef21ea2e6 (diff)
The cache inside ScDPCacheTable (I should rename this) is never NULL.
There is no point of having hasCache() method which always returns true. Change-Id: I309d3c33899cdab2049af5199ae8d41f7cbd5f99
Diffstat (limited to 'sc')
-rw-r--r--sc/inc/dpcachetable.hxx1
-rw-r--r--sc/source/core/data/dpcachetable.cxx5
-rw-r--r--sc/source/core/data/dpsdbtab.cxx8
-rw-r--r--sc/source/core/data/dpshttab.cxx8
4 files changed, 0 insertions, 22 deletions
diff --git a/sc/inc/dpcachetable.hxx b/sc/inc/dpcachetable.hxx
index 6f4d1516c7d1..0358e58db428 100644
--- a/sc/inc/dpcachetable.hxx
+++ b/sc/inc/dpcachetable.hxx
@@ -152,7 +152,6 @@ public:
SCROW getOrder(long nDim, SCROW nIndex) const;
void clear();
bool empty() const;
- bool hasCache() const;
#if DEBUG_PIVOT_TABLE
void dumpRowFlag(const RowFlagType& rFlag) const;
diff --git a/sc/source/core/data/dpcachetable.cxx b/sc/source/core/data/dpcachetable.cxx
index a71a8f299c41..9d7e3cbd8c23 100644
--- a/sc/source/core/data/dpcachetable.cxx
+++ b/sc/source/core/data/dpcachetable.cxx
@@ -404,11 +404,6 @@ bool ScDPCacheTable::empty() const
return maFieldEntries.empty();
}
-bool ScDPCacheTable::hasCache() const
-{
- return mpCache != NULL;
-}
-
bool ScDPCacheTable::isRowQualified(sal_Int32 nRow, const vector<Criterion>& rCriteria,
const boost::unordered_set<sal_Int32>& rRepeatIfEmptyDims) const
{
diff --git a/sc/source/core/data/dpsdbtab.cxx b/sc/source/core/data/dpsdbtab.cxx
index 4cd86ca778ef..da9da054fd9c 100644
--- a/sc/source/core/data/dpsdbtab.cxx
+++ b/sc/source/core/data/dpsdbtab.cxx
@@ -131,14 +131,6 @@ void ScDatabaseDPData::CreateCacheTable()
// cache table already created.
return;
- if (!aCacheTable.hasCache())
- {
- OSL_FAIL("Cache table should be created with a live data cache instance at all times.");
- // This better not happen!! Cache table should be created with a live
- // data cache instance at all times.
- return;
- }
-
aCacheTable.fillTable();
}
diff --git a/sc/source/core/data/dpshttab.cxx b/sc/source/core/data/dpshttab.cxx
index e2f680119f1a..78f702501d6d 100644
--- a/sc/source/core/data/dpshttab.cxx
+++ b/sc/source/core/data/dpshttab.cxx
@@ -182,14 +182,6 @@ void ScSheetDPData::CreateCacheTable()
// already cached.
return;
- if (!aCacheTable.hasCache())
- {
- OSL_FAIL("Cache table should be created with a live data cache instance at all times.");
- // This better not happen!! The cache table should be created with a
- // live data cache at all times.
- return;
- }
-
aCacheTable.fillTable(aQuery, bIgnoreEmptyRows, bRepeatIfEmpty);
}