This patch removes unused code as listed in unusedcode.easy
From ecde7d2545f9aff68d3b898b2722d7fd1cf2578d Mon Sep 17 00:00:00 2001 From: Santiago Martinez <smvar...@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
_______________________________________________ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice