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



Hi!

I removed 4 unused functions from class MultiLineEdit. (based on unusedcode.easy)
Functions removed: 
  MultiLineEdit::GetHScrollBar() const
  MultiLineEdit::GetLeftMargin() const
  MultiLineEdit::GetTextLines() const
  MultiLineEdit::IsFocusSelectionHideEnabled() const
Files modified:
  svtools/inc/svtools/svmedit.hxx
  svtools/source/edit/svmedit.cxx

                                          
From 60fa233ea0398cd02712f9d02c04f48c4f776b6d Mon Sep 17 00:00:00 2001
From: Szabolcs Dezsi <dezsiszabi@hotmail.com>
Date: Thu, 16 Feb 2012 11:50:42 +0100
Subject: [PATCH] Removed unused functions from MultiLineEdit in svtools
 module

---
 svtools/inc/svtools/svmedit.hxx |    4 ----
 svtools/source/edit/svmedit.cxx |   25 -------------------------
 unusedcode.easy                 |    8 ++++----
 3 files changed, 4 insertions(+), 33 deletions(-)

diff --git a/svtools/inc/svtools/svmedit.hxx b/svtools/inc/svtools/svmedit.hxx
index 5ff8ab4..bfce316 100644
--- a/svtools/inc/svtools/svmedit.hxx
+++ b/svtools/inc/svtools/svmedit.hxx
@@ -65,7 +65,6 @@ protected:
 
     ExtTextEngine*  GetTextEngine() const;
     ExtTextView*    GetTextView() const;
-    ScrollBar*      GetHScrollBar() const;
     ScrollBar*      GetVScrollBar() const;
 
 public:
@@ -89,7 +88,6 @@ public:
     virtual sal_Bool    IsReadOnly() const;
 
     void            EnableFocusSelectionHide( sal_Bool bHide );
-    sal_Bool            IsFocusSelectionHideEnabled() const;
 
     virtual void    SetMaxTextLen( xub_StrLen nMaxLen = 0 );
     virtual xub_StrLen GetMaxTextLen() const;
@@ -111,7 +109,6 @@ public:
                     { SetText( rStr ); SetSelection( rNewSelection ); }
     String          GetText() const;
     String          GetText( LineEnd aSeparator ) const;
-    String          GetTextLines() const;
     String          GetTextLines( LineEnd aSeparator ) const;
 
     void            SetRightToLeft( sal_Bool bRightToLeft );
@@ -138,7 +135,6 @@ public:
     void            Draw( OutputDevice* pDev, const Point& rPos, const Size& rSize, sal_uLong 
nFlags );
 
        void         SetLeftMargin( sal_uInt16 n );
-    sal_uInt16          GetLeftMargin() const;
 
     virtual
     ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer >
diff --git a/svtools/source/edit/svmedit.cxx b/svtools/source/edit/svmedit.cxx
index 44ad0d1..df7bce3 100644
--- a/svtools/source/edit/svmedit.cxx
+++ b/svtools/source/edit/svmedit.cxx
@@ -1221,11 +1221,6 @@ String MultiLineEdit::GetText( LineEnd aSeparator ) const
     return pImpSvMEdit->GetText( aSeparator );
 }
 
-String MultiLineEdit::GetTextLines() const
-{
-    return pImpSvMEdit->GetTextLines();
-}
-
 String MultiLineEdit::GetTextLines(  LineEnd aSeparator ) const
 {
     return pImpSvMEdit->GetTextLines( aSeparator );
@@ -1565,12 +1560,6 @@ ExtTextView* MultiLineEdit::GetTextView() const
     return pImpSvMEdit->GetTextWindow()->GetTextView();
 }
 
-ScrollBar* MultiLineEdit::GetHScrollBar() const
-{
-    return pImpSvMEdit->GetHScrollBar();
-}
-
-
 ScrollBar* MultiLineEdit::GetVScrollBar() const
 {
     return pImpSvMEdit->GetVScrollBar();
@@ -1581,26 +1570,12 @@ void MultiLineEdit::EnableFocusSelectionHide( sal_Bool bHide )
     pImpSvMEdit->GetTextWindow()->SetAutoFocusHide( bHide );
 }
 
-sal_Bool MultiLineEdit::IsFocusSelectionHideEnabled() const
-{
-    return pImpSvMEdit->GetTextWindow()->IsAutoFocusHide();
-}
-
-
 void MultiLineEdit::SetLeftMargin( sal_uInt16 n )
 {
     if ( GetTextEngine() )
         GetTextEngine()->SetLeftMargin( n );
 }
 
-sal_uInt16 MultiLineEdit::GetLeftMargin() const
-{
-    if ( GetTextEngine() )
-        return GetTextEngine()->GetLeftMargin();
-    else
-        return 0;
-}
-
 void MultiLineEdit::SetRightToLeft( sal_Bool bRightToLeft )
 {
     if ( GetTextEngine() )
diff --git a/unusedcode.easy b/unusedcode.easy
index 9a40c2f..360a738 100755
--- a/unusedcode.easy
+++ b/unusedcode.easy
@@ -72,10 +72,10 @@ MailDispatcher::removeListener(rtl::Reference<IMailDispatcherListener>)
 Matrix3d::Inverse() const
 Matrix3d::Matrix3d()
 MenuBar::MenuBar(ResId const&)
-MultiLineEdit::GetHScrollBar() const
-MultiLineEdit::GetLeftMargin() const
-MultiLineEdit::GetTextLines() const
-MultiLineEdit::IsFocusSelectionHideEnabled() const
+*******MultiLineEdit::GetHScrollBar() const
+*******MultiLineEdit::GetLeftMargin() const
+*******MultiLineEdit::GetTextLines() const
+*******MultiLineEdit::IsFocusSelectionHideEnabled() const
 NfCurrencyEntry::NfCurrencyEntry()
 NotificationSettings::CopyData()
 NumberFormatCodeWrapper::getDefault(short, short) const
-- 
1.7.7


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.