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



Hello,These is the patch that I've created. 
Licence: made available under the MPL/LGPLv3+
Ferran Vidal                                                                                        
                              
From 5779030032ab9fd94c201a5797fea601011a8ffd Mon Sep 17 00:00:00 2001
From: Ferran Vidal <vidalmarginet@hotmail.com>
Date: Sun, 22 Apr 2012 21:10:08 +0200
Subject: [PATCH] Remove unused code

---
 sc/inc/dbdata.hxx              |    1 -
 sc/source/core/tool/dbdata.cxx |    5 -----
 unusedcode.easy                |    1 -
 3 files changed, 0 insertions(+), 7 deletions(-)

diff --git a/sc/inc/dbdata.hxx b/sc/inc/dbdata.hxx
index 9dcd457..f770deb 100644
--- a/sc/inc/dbdata.hxx
+++ b/sc/inc/dbdata.hxx
@@ -218,7 +218,6 @@ public:
         void insert(ScDBData* p);
         void erase(iterator itr);
         bool empty() const;
-        size_t size() const;
         bool operator== (const AnonDBs& r) const;
     };
 
diff --git a/sc/source/core/tool/dbdata.cxx b/sc/source/core/tool/dbdata.cxx
index 36d1914..60e6d28 100644
--- a/sc/source/core/tool/dbdata.cxx
+++ b/sc/source/core/tool/dbdata.cxx
@@ -852,11 +852,6 @@ bool ScDBCollection::AnonDBs::empty() const
     return maDBs.empty();
 }
 
-size_t ScDBCollection::AnonDBs::size() const
-{
-    return maDBs.size();
-}
-
 bool ScDBCollection::AnonDBs::operator== (const AnonDBs& r) const
 {
     return maDBs == r.maDBs;
diff --git a/unusedcode.easy b/unusedcode.easy
index b62d53a..7a6a78b 100755
--- a/unusedcode.easy
+++ b/unusedcode.easy
@@ -62,7 +62,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::findByTable(short) const
-ScDBCollection::AnonDBs::size() const
 ScDPItemData::ScDPItemData(rtl::OUString const*)
 ScDPItemData::SetErrorString(rtl::OUString const&)
 ScDPLabelData::ScDPLabelData(rtl::OUString const&, short, bool)
-- 
1.7.5.4


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.