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


This patch removes unused code as listed in unusedcode.easy
From 6c990c918ee985ee22ab432aa46f51823ed0ef24 Mon Sep 17 00:00:00 2001
From: Santiago Martinez <smvarela@gmail.com>
Date: Wed, 22 Feb 2012 21:38:16 +0100
Subject: [PATCH] Remove unused code in ScUserList

---
 sc/inc/userlist.hxx              |    2 --
 sc/source/core/tool/userlist.cxx |   10 ----------
 unusedcode.easy                  |    2 --
 3 files changed, 0 insertions(+), 14 deletions(-)

diff --git a/sc/inc/userlist.hxx b/sc/inc/userlist.hxx
index 5fa00eb..541c66e 100644
--- a/sc/inc/userlist.hxx
+++ b/sc/inc/userlist.hxx
@@ -92,9 +92,7 @@ public:
     bool            operator!=( const ScUserList& r ) const;
 
     iterator begin();
-    iterator end();
     const_iterator begin() const;
-    const_iterator end() const;
     void clear();
     size_t size() const;
     void push_back(ScUserListData* p);
diff --git a/sc/source/core/tool/userlist.cxx b/sc/source/core/tool/userlist.cxx
index 4a97af0..28aecfc 100644
--- a/sc/source/core/tool/userlist.cxx
+++ b/sc/source/core/tool/userlist.cxx
@@ -345,21 +345,11 @@ ScUserList::iterator ScUserList::begin()
     return maData.begin();
 }
 
-ScUserList::iterator ScUserList::end()
-{
-    return maData.end();
-}
-
 ScUserList::const_iterator ScUserList::begin() const
 {
     return maData.begin();
 }
 
-ScUserList::const_iterator ScUserList::end() const
-{
-    return maData.end();
-}
-
 void ScUserList::clear()
 {
     maData.clear();
diff --git a/unusedcode.easy b/unusedcode.easy
index 758f612..3869a88 100755
--- a/unusedcode.easy
+++ b/unusedcode.easy
@@ -108,8 +108,6 @@ ScRangeData::ScRangeData(unsigned short)
 ScSimpleRangeList::Range::contains(ScSimpleRangeList::Range const&) const
 ScStringCell::ScStringCell()
 ScTypedStrData::GetValue() const
-ScUserList::end()
-ScUserList::end() const
 ScValidationEntries_Impl::Insert(ScValidationData* const&, unsigned short&)
 ScValidationEntries_Impl::Insert(ScValidationData* const*, unsigned short)
 ScValidationEntries_Impl::Insert(ScValidationEntries_Impl const*, unsigned short, unsigned short)
-- 
1.7.7.6


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.