[Libreoffice-commits] .: 2 commits - scaddins/source unusedcode.easy vcl/inc vcl/source
Caolán McNamara
caolan at kemper.freedesktop.org
Mon Mar 26 06:58:51 PDT 2012
scaddins/source/datefunc/datefunc.cxx | 17 -----------------
scaddins/source/datefunc/datefunc.hxx | 1 -
unusedcode.easy | 2 --
vcl/inc/vcl/scrbar.hxx | 1 -
vcl/source/control/scrbar.cxx | 10 ----------
5 files changed, 31 deletions(-)
New commits:
commit 564d216f77b7964a1a60995632131c80b4c1938f
Author: Santiago Martinez <smvarela at gmail.com>
Date: Fri Mar 23 22:05:00 2012 +0100
Remove unused code in vlc.
diff --git a/unusedcode.easy b/unusedcode.easy
index 16f1f50..3376da1 100755
--- a/unusedcode.easy
+++ b/unusedcode.easy
@@ -110,7 +110,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&)
-ScrollBarBox::ScrollBarBox(Window*, ResId const&)
ScrollableWindow::MakeVisible(Rectangle const&, unsigned char)
SectReprArr::Insert(SectRepr* const&, unsigned short&)
SectReprArr::Insert(SectRepr* const*, unsigned short)
diff --git a/vcl/inc/vcl/scrbar.hxx b/vcl/inc/vcl/scrbar.hxx
index 36c31b6..a3bf0ef 100644
--- a/vcl/inc/vcl/scrbar.hxx
+++ b/vcl/inc/vcl/scrbar.hxx
@@ -162,7 +162,6 @@ private:
public:
ScrollBarBox( Window* pParent, WinBits nStyle = 0 );
- ScrollBarBox( Window* pParent, const ResId& rResId );
virtual void StateChanged( StateChangedType nType );
virtual void DataChanged( const DataChangedEvent& rDCEvt );
diff --git a/vcl/source/control/scrbar.cxx b/vcl/source/control/scrbar.cxx
index d2611c6..44a093b 100644
--- a/vcl/source/control/scrbar.cxx
+++ b/vcl/source/control/scrbar.cxx
@@ -1536,16 +1536,6 @@ ScrollBarBox::ScrollBarBox( Window* pParent, WinBits nStyle ) :
// -----------------------------------------------------------------------
-ScrollBarBox::ScrollBarBox( Window* pParent, const ResId& rResId ) :
- Window( WINDOW_SCROLLBARBOX )
-{
- rResId.SetRT( RSC_SCROLLBAR );
- ImplInit( pParent, ImplInitRes( rResId ) );
- ImplLoadRes( rResId );
-}
-
-// -----------------------------------------------------------------------
-
void ScrollBarBox::ImplInitSettings()
{
// Hack, damit man auch DockingWindows ohne Hintergrund bauen kann
commit 6539ea5335b7904125c40e42b030ebdebe5614d6
Author: Santiago Martinez <smvarela at gmail.com>
Date: Fri Mar 23 21:37:59 2012 +0100
Remove unused code in scaddins.
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 eb72ea1..16f1f50 100755
--- a/unusedcode.easy
+++ b/unusedcode.easy
@@ -110,7 +110,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&)
More information about the Libreoffice-commits
mailing list