This patch removes unused code as listed in unusedcode.easy
From ecde7d2545f9aff68d3b898b2722d7fd1cf2578d Mon Sep 17 00:00:00 2001
From: Santiago Martinez <smvarela@gmail.com>
Date: Mon, 13 Feb 2012 21:52:07 +0100
Subject: [PATCH] Remove unused code.
---
svx/inc/svx/xtable.hxx | 1 -
svx/source/xoutdev/xtable.cxx | 15 ---------------
unusedcode.easy | 1 -
3 files changed, 0 insertions(+), 17 deletions(-)
diff --git a/svx/inc/svx/xtable.hxx b/svx/inc/svx/xtable.hxx
index a5f2197..eaca035 100644
--- a/svx/inc/svx/xtable.hxx
+++ b/svx/inc/svx/xtable.hxx
@@ -238,7 +238,6 @@ protected:
XPropertyList( XPropertyListType t, const String& rPath,
XOutdevItemPool* pXPool = NULL );
- void Clear();
public:
virtual ~XPropertyList();
diff --git a/svx/source/xoutdev/xtable.cxx b/svx/source/xoutdev/xtable.cxx
index 1eedd7a..9d18cc0 100644
--- a/svx/source/xoutdev/xtable.cxx
+++ b/svx/source/xoutdev/xtable.cxx
@@ -91,21 +91,6 @@ XPropertyList::~XPropertyList()
SfxItemPool::Free(pXPool);
}
-void XPropertyList::Clear()
-{
- for( size_t i = 0, n = aList.size(); i < n; ++i ) {
- delete aList[ i ];
- }
- aList.clear();
- if( pBmpList )
- {
- for ( size_t i = 0, n = pBmpList->size(); i < n; ++i ) {
- delete (*pBmpList)[ i ];
- }
- pBmpList->clear();
- }
-}
-
long XPropertyList::Count() const
{
if( bListDirty )
diff --git a/unusedcode.easy b/unusedcode.easy
index 9a40c2f..9f4bf3e 100755
--- a/unusedcode.easy
+++ b/unusedcode.easy
@@ -623,7 +623,6 @@ XMLTextListAutoStylePoolNames_Impl::Remove(rtl::OUString*)
XMLTextListAutoStylePool_Impl::GetPos(XMLTextListAutoStylePoolEntry_Impl const*) const
XMLTextListAutoStylePool_Impl::Remove(XMLTextListAutoStylePoolEntry_Impl*)
XMLVisAreaContext::XMLVisAreaContext(SvXMLImport&, unsigned short, rtl::OUString const&,
com::sun::star::uno::Reference<com::sun::star::xml::sax::XAttributeList> const&, Rectangle&, short)
-XPropertyList::Clear()
XWindowItem::XWindowItem(unsigned short, Window*)
XWindowItem::XWindowItem(unsigned short,
com::sun::star::uno::Reference<com::sun::star::awt::XWindow>&)
XclExpFontBuffer::Insert(ScPatternAttr const&, short, XclExpColorType, bool)
--
1.7.7.6
Context
- [PATCH] Remove unused code · 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.