summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@gmail.com>2012-09-18 15:53:21 -0400
committerKohei Yoshida <kohei.yoshida@gmail.com>2012-09-18 17:01:33 -0400
commitc72af8739d57035b9cd0771941939bd77813348e (patch)
tree215dbc7de6f4b4d66ac6fd53da40923d75f292e2
parent0a84d2f3bf5b13cabc266df411ee1bffcf5f9adf (diff)
Some cleanups.
Change-Id: I8812c9928409bcdb78dac1479c5e2205f2616965
-rw-r--r--sc/inc/dpcachetable.hxx8
-rw-r--r--sc/source/core/data/dpcachetable.cxx11
-rw-r--r--sc/source/core/data/dpitemdata.cxx2
3 files changed, 1 insertions, 20 deletions
diff --git a/sc/inc/dpcachetable.hxx b/sc/inc/dpcachetable.hxx
index c0d06250a6ee..c55ec2605438 100644
--- a/sc/inc/dpcachetable.hxx
+++ b/sc/inc/dpcachetable.hxx
@@ -55,15 +55,7 @@ struct ScQueryParam;
*/
class SC_DLLPUBLIC ScDPCacheTable
{
- struct RowFlag
- {
- bool mbShowByFilter:1;
- bool mbShowByPage:1;
- bool isActive() const;
- RowFlag();
- };
public:
-
/** interface class used for filtering of rows. */
class FilterBase
{
diff --git a/sc/source/core/data/dpcachetable.cxx b/sc/source/core/data/dpcachetable.cxx
index 11ac85fac2e9..14f4e8e2e48e 100644
--- a/sc/source/core/data/dpcachetable.cxx
+++ b/sc/source/core/data/dpcachetable.cxx
@@ -64,17 +64,6 @@ using ::com::sun::star::uno::UNO_QUERY;
using ::com::sun::star::uno::UNO_QUERY_THROW;
using ::com::sun::star::sheet::DataPilotFieldFilter;
-bool ScDPCacheTable::RowFlag::isActive() const
-{
- return mbShowByFilter && mbShowByPage;
-}
-
-ScDPCacheTable::RowFlag::RowFlag() :
- mbShowByFilter(false),
- mbShowByPage(true)
-{
-}
-
ScDPCacheTable::SingleFilter::SingleFilter(const ScDPItemData& rItem) :
maItem(rItem) {}
diff --git a/sc/source/core/data/dpitemdata.cxx b/sc/source/core/data/dpitemdata.cxx
index bb228949fb35..c3a163c4ba7b 100644
--- a/sc/source/core/data/dpitemdata.cxx
+++ b/sc/source/core/data/dpitemdata.cxx
@@ -210,7 +210,7 @@ bool ScDPItemData::IsCaseInsEqual(const ScDPItemData& r) const
;
}
- if (mbStringInterned && r.mbStringInterned && mpString == r.mpString)
+ if (mpString == r.mpString)
// Fast equality check for interned strings.
return true;