[PATCH] unusedcode.easy: Removed unused code

Alexander Bergmann myaddons at gmx.de
Fri Feb 10 08:39:59 PST 2012


---
 editeng/source/editeng/editdoc.cxx |    8 --------
 editeng/source/editeng/editdoc.hxx |    1 -
 linguistic/source/lngsvcmgr.cxx    |   15 ---------------
 linguistic/source/lngsvcmgr.hxx    |    3 ---
 svtools/inc/svtools/imap.hxx       |    3 ---
 svtools/source/edit/svmedit.cxx    |    6 ------
 svtools/source/misc/imap.cxx       |   18 ------------------
 unusedcode.easy                    |    8 --------
 vcl/inc/ilstbox.hxx                |    1 -
 vcl/inc/image.h                    |    1 -
 vcl/inc/vcl/button.hxx             |    3 ---
 vcl/inc/vcl/settings.hxx           |    6 ------
 vcl/source/app/settings.cxx        |   12 ------------
 vcl/source/control/button.cxx      |    8 --------
 vcl/source/control/ilstbox.cxx     |    7 -------
 vcl/source/gdi/impimage.cxx        |    5 -----
 16 files changed, 0 insertions(+), 105 deletions(-)

diff --git a/editeng/source/editeng/editdoc.cxx b/editeng/source/editeng/editdoc.cxx
index 0161eaa0..50f96a2 100644
--- a/editeng/source/editeng/editdoc.cxx
+++ b/editeng/source/editeng/editdoc.cxx
@@ -1169,14 +1169,6 @@ ItemList::ItemList() : CurrentItem( 0 )
 {
 }
 
-const SfxPoolItem* ItemList::FindAttrib( sal_uInt16 nWhich )
-{
-    for ( size_t i = 0, n = aItemPool.size(); i < n; ++i )
-        if ( aItemPool[ i ]->Which() == nWhich )
-            return aItemPool[ i ];
-    return NULL;
-}
-
 const SfxPoolItem* ItemList::First()
 {
     CurrentItem = 0;
diff --git a/editeng/source/editeng/editdoc.hxx b/editeng/source/editeng/editdoc.hxx
index 2b35c3e..32bfb24 100644
--- a/editeng/source/editeng/editdoc.hxx
+++ b/editeng/source/editeng/editdoc.hxx
@@ -187,7 +187,6 @@ private:
 
 public:
     ItemList();
-    const SfxPoolItem*  FindAttrib( sal_uInt16 nWhich );
     const SfxPoolItem*  First();
     const SfxPoolItem*  Next();
     size_t              Count() { return aItemPool.size(); };
diff --git a/linguistic/source/lngsvcmgr.cxx b/linguistic/source/lngsvcmgr.cxx
index 00acac2..7973611 100644
--- a/linguistic/source/lngsvcmgr.cxx
+++ b/linguistic/source/lngsvcmgr.cxx
@@ -1762,21 +1762,6 @@ sal_Bool LngSvcMgr::AddLngSvcEvtBroadcaster(
 }
 
 
-sal_Bool LngSvcMgr::RemoveLngSvcEvtBroadcaster(
-            const uno::Reference< linguistic2::XLinguServiceEventBroadcaster > &rxBroadcaster )
-{
-    sal_Bool bRes = sal_False;
-    if (rxBroadcaster.is())
-    {
-        DBG_ASSERT( pListenerHelper, "pListenerHelper non existent" );
-        if (!pListenerHelper)
-            GetListenerHelper_Impl();
-        bRes = pListenerHelper->RemoveLngSvcEvtBroadcaster( rxBroadcaster );
-    }
-    return bRes;
-}
-
-
 OUString SAL_CALL
     LngSvcMgr::getImplementationName()
         throw(uno::RuntimeException)
diff --git a/linguistic/source/lngsvcmgr.hxx b/linguistic/source/lngsvcmgr.hxx
index 635a853..0e27a70 100644
--- a/linguistic/source/lngsvcmgr.hxx
+++ b/linguistic/source/lngsvcmgr.hxx
@@ -174,9 +174,6 @@ public:
     sal_Bool    AddLngSvcEvtBroadcaster(
                 const ::com::sun::star::uno::Reference<
                     ::com::sun::star::linguistic2::XLinguServiceEventBroadcaster > &rxBroadcaster );
-    sal_Bool    RemoveLngSvcEvtBroadcaster(
-                const ::com::sun::star::uno::Reference<
-                    ::com::sun::star::linguistic2::XLinguServiceEventBroadcaster > &rxBroadcaster );
 };
 
 
diff --git a/svtools/inc/svtools/imap.hxx b/svtools/inc/svtools/imap.hxx
index 9418d98..8d81c00 100644
--- a/svtools/inc/svtools/imap.hxx
+++ b/svtools/inc/svtools/imap.hxx
@@ -132,9 +132,6 @@ public:
     const String&       GetName() const { return aName; }
     void                SetName( const String& rName ) { aName = rName; }
 
-    // gibt das BoundRect aller IMap-Objekte in 1/100mm zurueck
-    Rectangle           GetBoundRect() const;
-
     // skaliert alle Objekte der ImageMap entpr. dem uebergebenen Faktor
     void                Scale( const Fraction& rFractX, const Fraction& rFracY );
 
diff --git a/svtools/source/edit/svmedit.cxx b/svtools/source/edit/svmedit.cxx
index 44ad0d1..267a203 100644
--- a/svtools/source/edit/svmedit.cxx
+++ b/svtools/source/edit/svmedit.cxx
@@ -139,7 +139,6 @@ public:
     void        SetMaxTextLen( xub_StrLen nLen );
     xub_StrLen  GetMaxTextLen() const;
 
-    void        SetInsertMode( sal_Bool bInsert );
     sal_Bool        IsInsertMode() const;
 
     void        InsertText( const String& rStr );
@@ -396,11 +395,6 @@ sal_Bool ImpSvMEdit::IsModified() const
     return mpTextWindow->GetTextEngine()->IsModified();
 }
 
-void ImpSvMEdit::SetInsertMode( sal_Bool bInsert )
-{
-    mpTextWindow->GetTextView()->SetInsertMode( bInsert );
-}
-
 void ImpSvMEdit::SetReadOnly( sal_Bool bRdOnly )
 {
     mpTextWindow->GetTextView()->SetReadOnly( bRdOnly );
diff --git a/svtools/source/misc/imap.cxx b/svtools/source/misc/imap.cxx
index d4199e2..dd15a4b 100644
--- a/svtools/source/misc/imap.cxx
+++ b/svtools/source/misc/imap.cxx
@@ -989,24 +989,6 @@ IMapObject* ImageMap::GetHitIMapObject( const Size& rTotalSize,
 |*
 \******************************************************************************/
 
-Rectangle ImageMap::GetBoundRect() const
-{
-    Rectangle   aBoundRect;
-    size_t      nCount = maList.size();
-
-    for ( size_t i = 0; i < nCount; i++ )
-        aBoundRect.Union( maList[ i ]->GetBoundRect() );
-
-    return aBoundRect;
-}
-
-
-/******************************************************************************
-|*
-|*
-|*
-\******************************************************************************/
-
 void ImageMap::Scale( const Fraction& rFracX, const Fraction& rFracY )
 {
     size_t nCount = maList.size();
diff --git a/unusedcode.easy b/unusedcode.easy
index 6fb76fa..bdbee09 100755
--- a/unusedcode.easy
+++ b/unusedcode.easy
@@ -48,21 +48,13 @@ HTMLControls::Insert(HTMLControl const**, unsigned short)
 HTMLControls::Insert(HTMLControls const*, unsigned short, unsigned short)
 HTMLControls::Remove(HTMLControl const*&, unsigned short)
 HTMLControls::Remove(unsigned short, unsigned short)
-ImageButton::ImageButton(unsigned short)
-ImageMap::GetBoundRect() const
-ImpSvMEdit::SetInsertMode(unsigned char)
 ImpSvtData::~ImpSvtData()
 ImplDevFontList::ImplFindByLocale(com::sun::star::lang::Locale&) const
-ImplEntryList::IsEntrySelected(String const&) const
-ImplImageList::GetImageCount() const
 InsCapOptArr::Insert(InsCapOptArr const*, unsigned short, unsigned short)
 InsCapOptArr::Insert(InsCaptionOpt* const&, unsigned short&)
 InsCapOptArr::Insert(InsCaptionOpt* const*, unsigned short)
 InsCapOptArr::Remove(InsCaptionOpt* const&, unsigned short)
 InsCapOptArr::Remove(unsigned short, unsigned short)
-ItemList::FindAttrib(unsigned short)
-KeyboardSettings::CopyData()
-LngSvcMgr::RemoveLngSvcEvtBroadcaster(com::sun::star::uno::Reference<com::sun::star::linguistic2::XLinguServiceEventBroadcaster> const&)
 MSDffImportRecords::Insert(MSDffImportRecords const*, unsigned short, unsigned short)
 MSDffImportRecords::Insert(SvxMSDffImportRec* const&, unsigned short&)
 MSDffImportRecords::Insert(SvxMSDffImportRec* const*, unsigned short)
diff --git a/vcl/inc/ilstbox.hxx b/vcl/inc/ilstbox.hxx
index c1355f0..cecf3b8 100644
--- a/vcl/inc/ilstbox.hxx
+++ b/vcl/inc/ilstbox.hxx
@@ -168,7 +168,6 @@ public:
     sal_uInt16          GetSelectEntryCount() const;
     XubString       GetSelectEntry( sal_uInt16 nIndex ) const;
     sal_uInt16          GetSelectEntryPos( sal_uInt16 nIndex ) const;
-    sal_Bool            IsEntrySelected( const XubString& rStr ) const;
     sal_Bool            IsEntryPosSelected( sal_uInt16 nIndex ) const;
 
     void            SetLastSelected( sal_uInt16 nPos )  { mnLastSelected = nPos; }
diff --git a/vcl/inc/image.h b/vcl/inc/image.h
index 1497750..f8abc4e 100644
--- a/vcl/inc/image.h
+++ b/vcl/inc/image.h
@@ -114,7 +114,6 @@ struct ImplImageList
     void AddImage( const ::rtl::OUString &aName,
                    sal_uInt16 nId, const BitmapEx &aBitmapEx );
     void RemoveImage( sal_uInt16 nPos );
-    sal_uInt16 GetImageCount() const;
 };
 
 // --------------------
diff --git a/vcl/inc/vcl/button.hxx b/vcl/inc/vcl/button.hxx
index b2b812c..85f3f54 100644
--- a/vcl/inc/vcl/button.hxx
+++ b/vcl/inc/vcl/button.hxx
@@ -509,9 +509,6 @@ private:
     SAL_DLLPRIVATE          ImageButton( const ImageButton & );
     SAL_DLLPRIVATE          ImageButton & operator= ( const ImageButton & );
 
-protected:
-                    ImageButton( WindowType nType );
-
 public:
                     ImageButton( Window* pParent, WinBits nStyle = 0 );
                     ImageButton( Window* pParent, const ResId& rResId );
diff --git a/vcl/inc/vcl/settings.hxx b/vcl/inc/vcl/settings.hxx
index 2494f4f..0ff91b3 100644
--- a/vcl/inc/vcl/settings.hxx
+++ b/vcl/inc/vcl/settings.hxx
@@ -297,8 +297,6 @@ private:
 
 class VCL_DLLPUBLIC KeyboardSettings
 {
-    void                            CopyData();
-
 private:
     ImplKeyboardData*               mpData;
 
@@ -307,13 +305,9 @@ public:
                                     KeyboardSettings( const KeyboardSettings& rSet );
                                     ~KeyboardSettings();
 
-    void                            SetStandardAccel( const Accelerator& rAccelerator )
-                                        { CopyData(); mpData->maStandardAccel = rAccelerator; }
     const Accelerator&              GetStandardAccel() const
                                         { return mpData->maStandardAccel; }
 
-    void                            SetOptions( sal_uLong nOptions )
-                                        { CopyData(); mpData->mnOptions = nOptions; }
     sal_uLong                           GetOptions() const
                                         { return mpData->mnOptions; }
 
diff --git a/vcl/source/app/settings.cxx b/vcl/source/app/settings.cxx
index 2a3a5ca..1248c10 100644
--- a/vcl/source/app/settings.cxx
+++ b/vcl/source/app/settings.cxx
@@ -376,18 +376,6 @@ const KeyboardSettings& KeyboardSettings::operator =( const KeyboardSettings& rS
 
 // -----------------------------------------------------------------------
 
-void KeyboardSettings::CopyData()
-{
-    // Falls noch andere Referenzen bestehen, dann kopieren
-    if ( mpData->mnRefCount != 1 )
-    {
-        mpData->mnRefCount--;
-        mpData = new ImplKeyboardData( *mpData );
-    }
-}
-
-// -----------------------------------------------------------------------
-
 sal_Bool KeyboardSettings::operator ==( const KeyboardSettings& rSet ) const
 {
     return mpData == rSet.mpData
diff --git a/vcl/source/control/button.cxx b/vcl/source/control/button.cxx
index e49e0cb..9af4551 100644
--- a/vcl/source/control/button.cxx
+++ b/vcl/source/control/button.cxx
@@ -3960,14 +3960,6 @@ Size CheckBox::GetOptimalSize(WindowSizeType eType) const
 
 // =======================================================================
 
-ImageButton::ImageButton( WindowType nType ) :
-    PushButton( nType )
-{
-    ImplInitStyle();
-}
-
-// -----------------------------------------------------------------------
-
 ImageButton::ImageButton( Window* pParent, WinBits nStyle ) :
     PushButton( pParent, nStyle )
 {
diff --git a/vcl/source/control/ilstbox.cxx b/vcl/source/control/ilstbox.cxx
index ec00069..786e28a 100644
--- a/vcl/source/control/ilstbox.cxx
+++ b/vcl/source/control/ilstbox.cxx
@@ -498,13 +498,6 @@ sal_uInt16 ImplEntryList::GetSelectEntryPos( sal_uInt16 nIndex ) const
 
 // -----------------------------------------------------------------------
 
-sal_Bool ImplEntryList::IsEntrySelected( const XubString& rStr ) const
-{
-    return IsEntryPosSelected( FindEntry( rStr ) );
-}
-
-// -----------------------------------------------------------------------
-
 sal_Bool ImplEntryList::IsEntryPosSelected( sal_uInt16 nIndex ) const
 {
     ImplEntryType* pImplEntry = GetEntry( nIndex );
diff --git a/vcl/source/gdi/impimage.cxx b/vcl/source/gdi/impimage.cxx
index 3517260..4e7ebed 100644
--- a/vcl/source/gdi/impimage.cxx
+++ b/vcl/source/gdi/impimage.cxx
@@ -123,11 +123,6 @@ void ImplImageList::RemoveImage( sal_uInt16 nPos )
     maImages.erase( maImages.begin() + nPos );
 }
 
-sal_uInt16 ImplImageList::GetImageCount() const
-{
-    return sal::static_int_cast< sal_uInt16 >( maImages.size() );
-}
-
 // -----------------
 // - ImplImageData -
 // -----------------
-- 
1.7.9



More information about the LibreOffice mailing list