This patch removes unused code as listed in unusedcode.easy
From 585721f333baa53199ab2dbe36964e5759b3089a Mon Sep 17 00:00:00 2001
From: Santiago Martinez <smvarela@gmail.com>
Date: Mon, 12 Mar 2012 20:38:51 +0100
Subject: [PATCH] Remove unused code in dpitemdata
---
sc/inc/dpitemdata.hxx | 2 --
sc/source/core/data/dpitemdata.cxx | 11 -----------
unusedcode.easy | 2 --
3 files changed, 0 insertions(+), 15 deletions(-)
diff --git a/sc/inc/dpitemdata.hxx b/sc/inc/dpitemdata.hxx
index 3e09d89..10363be 100644
--- a/sc/inc/dpitemdata.hxx
+++ b/sc/inc/dpitemdata.hxx
@@ -79,7 +79,6 @@ public:
ScDPItemData();
ScDPItemData(const ScDPItemData& r);
ScDPItemData(const rtl::OUString& rStr);
- ScDPItemData(double fVal);
ScDPItemData(sal_Int32 nGroupType, sal_Int32 nValue);
~ScDPItemData();
@@ -89,7 +88,6 @@ public:
void SetRangeStart(double fVal);
void SetRangeFirst();
void SetRangeLast();
- void SetGroupValue(sal_Int32 nGroupType, sal_Int32 nValue);
void SetErrorString(const rtl::OUString& rS);
bool IsCaseInsEqual(const ScDPItemData& r) const;
diff --git a/sc/source/core/data/dpitemdata.cxx b/sc/source/core/data/dpitemdata.cxx
index 77c01b9..dd370ca 100644
--- a/sc/source/core/data/dpitemdata.cxx
+++ b/sc/source/core/data/dpitemdata.cxx
@@ -112,9 +112,6 @@ void ScDPItemData::DisposeString()
ScDPItemData::ScDPItemData(const rtl::OUString& rStr) :
mpString(new rtl::OUString(rStr)), meType(String) {}
-ScDPItemData::ScDPItemData(double fVal) :
- mfValue(fVal), meType(Value) {}
-
ScDPItemData::ScDPItemData(sal_Int32 nGroupType, sal_Int32 nValue) :
meType(GroupValue)
{
@@ -167,14 +164,6 @@ void ScDPItemData::SetRangeLast()
meType = RangeStart;
}
-void ScDPItemData::SetGroupValue(sal_Int32 nGroupType, sal_Int32 nValue)
-{
- DisposeString();
- maGroupValue.mnGroupType = nGroupType;
- maGroupValue.mnValue = nValue;
- meType = GroupValue;
-}
-
void ScDPItemData::SetErrorString(const rtl::OUString& rS)
{
SetString(rS);
diff --git a/unusedcode.easy b/unusedcode.easy
index e1067ed..77ae5b4 100755
--- a/unusedcode.easy
+++ b/unusedcode.easy
@@ -72,8 +72,6 @@ ScConditionalFormats_Impl::Remove(unsigned short, unsigned short)
ScCsvControl::ScCsvControl(Window*, ScCsvLayoutData const&, long)
ScDBCollection::AnonDBs::erase(boost::void_ptr_iterator<__gnu_debug::_Safe_iterator<__gnu_cxx::__normal_iterator<void**,
std::__cxx1998::vector<void*, std::allocator<void*> > >, std::__debug::vector<void*,
std::allocator<void*> > >, ScDBData>)
ScDBCollection::AnonDBs::size() const
-ScDPItemData::ScDPItemData(double)
-ScDPItemData::SetGroupValue(int, int)
ScDPLabelData::ScDPLabelData(rtl::OUString const&, short, bool)
ScDocRowHeightUpdater::TabRanges::TabRanges()
ScFilterDetect::impl_createFactory(com::sun::star::uno::Reference<com::sun::star::lang::XMultiServiceFactory>
const&)
--
1.7.7.6
Context
- [PATCH] Remove unused code in dpitemdata · Santiago Martinez
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.