This patch removes unused code as listed in unusedcode.easy
From 6c990c918ee985ee22ab432aa46f51823ed0ef24 Mon Sep 17 00:00:00 2001
From: Santiago Martinez <smvar...@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

_______________________________________________
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice

Reply via email to