Date: prev next · Thread: first prev next last
2012 Archives by date, by thread · List index


This patch removes the unused method ScDPObject::HasGroups, as listed in unusedcode.easy

I license this code under LGPLv3+/MPL+ licenses
From 29cfed449184437245f5daf8a07778d66409a793 Mon Sep 17 00:00:00 2001
From: Javier Catala <j_catala@yahoo.com>
Date: Wed, 25 Apr 2012 16:51:59 +0200
Subject: [PATCH] Remove unused method ScDPObject::HasGroups

Changes to be committed:

        modified:   sc/inc/dpobject.hxx
        modified:   sc/source/core/data/dpobject.cxx
        modified:   unusedcode.easy
---
 sc/inc/dpobject.hxx              |    1 -
 sc/source/core/data/dpobject.cxx |   12 ------------
 unusedcode.easy                  |    1 -
 3 files changed, 0 insertions(+), 14 deletions(-)

diff --git a/sc/inc/dpobject.hxx b/sc/inc/dpobject.hxx
index 4f97b40..64525fd 100644
--- a/sc/inc/dpobject.hxx
+++ b/sc/inc/dpobject.hxx
@@ -138,7 +138,6 @@ public:
     void                InvalidateData();
     void ClearTableData();
     void ReloadGroupTableData();
-    bool HasGroups() const;
 
     void                Output( const ScAddress& rPos );
     ScRange             GetNewOutputRange( bool& rOverflow );
diff --git a/sc/source/core/data/dpobject.cxx b/sc/source/core/data/dpobject.cxx
index 2a431da..a3ae9ab 100644
--- a/sc/source/core/data/dpobject.cxx
+++ b/sc/source/core/data/dpobject.cxx
@@ -585,18 +585,6 @@ void ScDPObject::ReloadGroupTableData()
     bSettingsChanged = true;
 }
 
-bool ScDPObject::HasGroups() const
-{
-    if (!pSaveData)
-        return false;
-
-    const ScDPDimensionSaveData* pDimData = pSaveData->GetExistingDimensionData();
-    if (!pDimData)
-        return false;
-
-    return pDimData->HasGroupDimensions();
-}
-
 void ScDPObject::ClearSource()
 {
     Reference< XComponent > xObjectComp( xSource, UNO_QUERY );
diff --git a/unusedcode.easy b/unusedcode.easy
index d1f5e1d..68181d7 100755
--- a/unusedcode.easy
+++ b/unusedcode.easy
@@ -54,7 +54,6 @@ 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::findByTable(short) const
 ScDPLabelData::ScDPLabelData(rtl::OUString const&, short, bool)
-ScDPObject::HasGroups() const
 ScDocRowHeightUpdater::TabRanges::TabRanges()
 ScHTMLColOffset::Insert(ScHTMLColOffset const*, unsigned short, unsigned short)
 ScHTMLColOffset::Insert(unsigned long const&, unsigned short&)
-- 
1.7.5.1


Context


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.