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 00975e8dec9da11e13b4523d1d9e918bac5f5222 Mon Sep 17 00:00:00 2001
From: Santiago Martinez <smvarela@gmail.com>
Date: Fri, 23 Mar 2012 21:37:59 +0100
Subject: [PATCH] Remove unused code in scaddins.

---
 scaddins/source/datefunc/datefunc.cxx |   17 -----------------
 scaddins/source/datefunc/datefunc.hxx |    1 -
 unusedcode.easy                       |    1 -
 3 files changed, 0 insertions(+), 19 deletions(-)

diff --git a/scaddins/source/datefunc/datefunc.cxx b/scaddins/source/datefunc/datefunc.cxx
index 4ae9543..6ba6d44 100644
--- a/scaddins/source/datefunc/datefunc.cxx
+++ b/scaddins/source/datefunc/datefunc.cxx
@@ -83,23 +83,6 @@ void ScaList::_Grow()
     pData = pNewData;
 }
 
-void ScaList::Insert( void* pNew, sal_uInt32 nIndex )
-{
-    if( nIndex >= nCount )
-        Append( pNew );
-    else
-    {
-        Grow();
-
-        void** pIns = pData + nIndex;
-        memmove( pIns + 1, pIns, (nCount - nIndex) * sizeof( void* ) );
-
-        *pIns = pNew;
-        nCount++;
-    }
-}
-
-
 //------------------------------------------------------------------
 
 ScaStringList::~ScaStringList()
diff --git a/scaddins/source/datefunc/datefunc.hxx b/scaddins/source/datefunc/datefunc.hxx
index fae7983..61ba8da 100644
--- a/scaddins/source/datefunc/datefunc.hxx
+++ b/scaddins/source/datefunc/datefunc.hxx
@@ -76,7 +76,6 @@ public:
     inline void*                Next()  { return (nCurr + 1 < nCount) ? pData[ ++nCurr ] : NULL; }
 
     inline void                 Append( void* pNew );
-    void                        Insert( void* pNew, sal_uInt32 nIndex );
 };
 
 
diff --git a/unusedcode.easy b/unusedcode.easy
index b8d6b87..1065082 100755
--- a/unusedcode.easy
+++ b/unusedcode.easy
@@ -109,7 +109,6 @@ ScVbaFormat<ooo::vba::excel::XStyle>::getXServiceInfo()
 ScVbaFormat<ooo::vba::excel::XStyle>::setAddIndent(com::sun::star::uno::Any const&)
 ScVbaFormat<ooo::vba::excel::XStyle>::setNumberFormat(com::sun::star::lang::Locale, rtl::OUString 
const&)
 ScVbaWorksheet::ScVbaWorksheet(com::sun::star::uno::Reference<ooo::vba::XHelperInterface> const&, 
com::sun::star::uno::Reference<com::sun::star::uno::XComponentContext> const&)
-ScaList::Insert(void*, unsigned int)
 ScrollBarBox::ScrollBarBox(Window*, ResId const&)
 ScrollableWindow::MakeVisible(Rectangle const&, unsigned char)
 SectReprArr::Insert(SectRepr* const&, 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.