Date: prev next · Thread: first prev next last
2012 Archives by date, by thread · List index


Hi,

I removed a little bit of unused code (unusedcode.easy).

Petr
From fefa4759000f74d3ca90aa118247abc77cf9363f Mon Sep 17 00:00:00 2001
From: Petr Vorel <petr.vorel@gmail.com>
Date: Sat, 18 Feb 2012 23:50:22 +0100
Subject: [PATCH] Remove unused code

---
 l10ntools/source/merge.cxx                        |   16 ----------------
 registry/source/keyimpl.cxx                       |    8 --------
 registry/source/keyimpl.hxx                       |    1 -
 svl/inc/svl/zforlist.hxx                          |    1 -
 svl/source/numbers/zforlist.cxx                   |    9 ---------
 svx/inc/svx/svdetc.hxx                            |    1 -
 svx/source/svdraw/svdetc.cxx                      |    5 -----
 unotools/inc/unotools/numberformatcodewrapper.hxx |    1 -
 unotools/source/i18n/numberformatcodewrapper.cxx  |   16 ----------------
 unusedcode.easy                                   |    6 ------
 vcl/inc/vcl/menu.hxx                              |    1 -
 vcl/source/window/menu.cxx                        |    9 ---------
 12 files changed, 0 insertions(+), 74 deletions(-)

diff --git a/l10ntools/source/merge.cxx b/l10ntools/source/merge.cxx
index b9b8d40..55c62d1 100644
--- a/l10ntools/source/merge.cxx
+++ b/l10ntools/source/merge.cxx
@@ -129,22 +129,6 @@ void MergeData::Insert(PFormEntrys* pfEntrys )
     aMap.insert( PFormEntrysHashMap::value_type( rtl::OString(RTL_CONSTASCII_STRINGPARAM("HACK")) 
, pfEntrys ) );
 }
 
-rtl::OString MergeData::Dump()
-{
-    printf("MergeData sTyp = %s , sGid = %s , sLid =%s , sFilename = %s\n",
-        sTyp.getStr(), sGID.getStr(), sLID.getStr(), sFilename.getStr());
-
-    PFormEntrysHashMap::const_iterator idbg;
-    for( idbg = aMap.begin() ; idbg != aMap.end(); ++idbg )
-    {
-        printf("aMap[ %s ] = " ,idbg->first.getStr());
-        ( (PFormEntrys*)(idbg->second) )->Dump();
-        printf("\n");
-    }
-    printf("\n");
-    return rtl::OString(RTL_CONSTASCII_STRINGPARAM("MergeData\n"));
-}
-
 PFormEntrys* MergeData::GetPFObject( const rtl::OString& rPFO )
 {
     if( aMap.find( rtl::OString(RTL_CONSTASCII_STRINGPARAM("HACK")) ) != aMap.end() )
diff --git a/registry/source/keyimpl.cxx b/registry/source/keyimpl.cxx
index c48ae9c..adbb49e 100644
--- a/registry/source/keyimpl.cxx
+++ b/registry/source/keyimpl.cxx
@@ -61,14 +61,6 @@ ORegKey::~ORegKey()
 }
 
 //*********************************************************************
-//  acquireKey
-//
-RegError ORegKey::acquireKey(RegKeyHandle hKey)
-{
-    return m_pRegistry->acquireKey(hKey);
-}
-
-//*********************************************************************
 //  releaseKey
 //
 RegError ORegKey::releaseKey(RegKeyHandle hKey)
diff --git a/registry/source/keyimpl.hxx b/registry/source/keyimpl.hxx
index a384d20..fbd9c4c 100644
--- a/registry/source/keyimpl.hxx
+++ b/registry/source/keyimpl.hxx
@@ -46,7 +46,6 @@ public:
     sal_uInt32  release()
         { return --m_refCount; }
 
-    RegError    acquireKey(RegKeyHandle hKey);
     RegError    releaseKey(RegKeyHandle hKey);
 
     RegError    createKey(const rtl::OUString& keyName, RegKeyHandle* phNewKey);
diff --git a/svl/inc/svl/zforlist.hxx b/svl/inc/svl/zforlist.hxx
index a8cca86..69645e1 100644
--- a/svl/inc/svl/zforlist.hxx
+++ b/svl/inc/svl/zforlist.hxx
@@ -247,7 +247,6 @@ private:
 
 public:
 
-                        NfCurrencyEntry();
                         NfCurrencyEntry( const LocaleDataWrapper& rLocaleData,
                             LanguageType eLang );
                         NfCurrencyEntry(
diff --git a/svl/source/numbers/zforlist.cxx b/svl/source/numbers/zforlist.cxx
index 2ee058f..ca3ca49 100644
--- a/svl/source/numbers/zforlist.cxx
+++ b/svl/source/numbers/zforlist.cxx
@@ -3798,15 +3798,6 @@ sal_uInt16 SvNumberFormatter::GetCurrencyFormatStrings( NfWSStringsDtor& 
rStrArr
 
 //--- NfCurrencyEntry ----------------------------------------------------
 
-NfCurrencyEntry::NfCurrencyEntry()
-    :   eLanguage( LANGUAGE_DONTKNOW ),
-        nPositiveFormat(3),
-        nNegativeFormat(8),
-        nDigits(2),
-        cZeroChar('0')
-{
-}
-
 
 NfCurrencyEntry::NfCurrencyEntry( const LocaleDataWrapper& rLocaleData, LanguageType eLang )
 {
diff --git a/svx/inc/svx/svdetc.hxx b/svx/inc/svx/svdetc.hxx
index b547289..08ba835 100644
--- a/svx/inc/svx/svdetc.hxx
+++ b/svx/inc/svx/svdetc.hxx
@@ -256,7 +256,6 @@ public:
     OLEObjCache();
     SVX_DLLPUBLIC ~OLEObjCache();
 
-    void SetSize(sal_uIntPtr nNewSize);
     void InsertObj(SdrOle2Obj* pObj);
     void RemoveObj(SdrOle2Obj* pObj);
 };
diff --git a/svx/source/svdraw/svdetc.cxx b/svx/source/svdraw/svdetc.cxx
index 2672e82..0cc3c01 100644
--- a/svx/source/svdraw/svdetc.cxx
+++ b/svx/source/svdraw/svdetc.cxx
@@ -174,11 +174,6 @@ void OLEObjCache::UnloadOnDemand()
     }
 }
 
-void OLEObjCache::SetSize(sal_uIntPtr nNewSize)
-{
-    nSize = nNewSize;
-}
-
 void OLEObjCache::InsertObj(SdrOle2Obj* pObj)
 {
     if ( Count() )
diff --git a/unotools/inc/unotools/numberformatcodewrapper.hxx 
b/unotools/inc/unotools/numberformatcodewrapper.hxx
index f0bf53f..9adb59d 100644
--- a/unotools/inc/unotools/numberformatcodewrapper.hxx
+++ b/unotools/inc/unotools/numberformatcodewrapper.hxx
@@ -67,7 +67,6 @@ public:
 
     // Wrapper implementations of class NumberFormatCodeMapper
 
-    ::com::sun::star::i18n::NumberFormatCode getDefault( sal_Int16 nFormatType, sal_Int16 
nFormatUsage ) const;
     ::com::sun::star::i18n::NumberFormatCode getFormatCode( sal_Int16 nFormatIndex ) const;
     ::com::sun::star::uno::Sequence< ::com::sun::star::i18n::NumberFormatCode > getAllFormatCode( 
sal_Int16 nFormatUsage ) const;
     ::com::sun::star::uno::Sequence< ::com::sun::star::i18n::NumberFormatCode > 
getAllFormatCodes() const;
diff --git a/unotools/source/i18n/numberformatcodewrapper.cxx 
b/unotools/source/i18n/numberformatcodewrapper.cxx
index f341f2f..759352f 100644
--- a/unotools/source/i18n/numberformatcodewrapper.cxx
+++ b/unotools/source/i18n/numberformatcodewrapper.cxx
@@ -63,22 +63,6 @@ void NumberFormatCodeWrapper::setLocale( const ::com::sun::star::lang::Locale& r
 
 
 ::com::sun::star::i18n::NumberFormatCode
-NumberFormatCodeWrapper::getDefault( sal_Int16 formatType, sal_Int16 formatUsage ) const
-{
-    try
-    {
-        if ( xNFC.is() )
-            return xNFC->getDefault( formatType, formatUsage, aLocale );
-    }
-    catch ( const Exception& )
-    {
-        SAL_WARN( "unotools.i18n", "getDefault: Exception caught!" );
-    }
-    return ::com::sun::star::i18n::NumberFormatCode();
-}
-
-
-::com::sun::star::i18n::NumberFormatCode
 NumberFormatCodeWrapper::getFormatCode( sal_Int16 formatIndex ) const
 {
     try
diff --git a/unusedcode.easy b/unusedcode.easy
index fc86475..803af3b 100755
--- a/unusedcode.easy
+++ b/unusedcode.easy
@@ -39,17 +39,11 @@ MSFilterTracer::StartElement(rtl::OUString const&, com::sun::star::uno::Referenc
 MailDispatcher::removeListener(rtl::Reference<IMailDispatcherListener>)
 Matrix3d::Inverse() const
 Matrix3d::Matrix3d()
-MenuBar::MenuBar(ResId const&)
-MergeData::Dump()
-NfCurrencyEntry::NfCurrencyEntry()
-NumberFormatCodeWrapper::getDefault(short, short) const
 NumericBox::GetValue(unsigned short) const
 NumericBox::GetValuePos(long) const
 NumericBox::RemoveValue(long)
 NumericFormatter::ConvertToFraction(long)
 NumericFormatter::ConvertToLong(Fraction const&)
-OLEObjCache::SetSize(unsigned long)
-ORegKey::acquireKey(void*)
 OutputDevice::LogicToPixel(PolyPolygon const&, MapMode const&) const
 OutputDevice::PixelToLogic(PolyPolygon const&, MapMode const&) const
 ParagraphStyleManager::get(WPXString const&) const
diff --git a/vcl/inc/vcl/menu.hxx b/vcl/inc/vcl/menu.hxx
index 209aef6..dd7f5c1 100644
--- a/vcl/inc/vcl/menu.hxx
+++ b/vcl/inc/vcl/menu.hxx
@@ -399,7 +399,6 @@ class VCL_DLLPUBLIC MenuBar : public Menu
 
 public:
                         MenuBar();
-                        MenuBar( const ResId& rResId );
                         MenuBar( const MenuBar& rMenu );
                         ~MenuBar();
 
diff --git a/vcl/source/window/menu.cxx b/vcl/source/window/menu.cxx
index 11c7d04..c8e31d2 100644
--- a/vcl/source/window/menu.cxx
+++ b/vcl/source/window/menu.cxx
@@ -3283,15 +3283,6 @@ MenuBar::MenuBar( const MenuBar& rMenu ) : Menu( sal_True )
     bIsMenuBar          = sal_True;
 }
 
-MenuBar::MenuBar( const ResId& rResId ) : Menu ( sal_True )
-{
-    mbDisplayable       = sal_True;
-    mbCloserVisible     = sal_False;
-    mbFloatBtnVisible   = sal_False;
-    mbHideBtnVisible    = sal_False;
-    ImplLoadRes( rResId );
-}
-
 MenuBar::~MenuBar()
 {
     ImplDestroy( this, sal_True );
-- 
1.7.9


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.