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 1f104bbd9a45535235677a01f770c5297ba23cf1 Mon Sep 17 00:00:00 2001
From: Santiago Martinez <smvarela@gmail.com>
Date: Thu, 16 Feb 2012 21:34:44 +0100
Subject: [PATCH] Remove unused code in SvxSearchDialog

---
 svx/inc/svx/srchdlg.hxx       |    4 ---
 svx/source/dialog/srchdlg.cxx |   42 -----------------------------------------
 unusedcode.easy               |    3 --
 3 files changed, 0 insertions(+), 49 deletions(-)

diff --git a/svx/inc/svx/srchdlg.hxx b/svx/inc/svx/srchdlg.hxx
index e5d2844..852c681 100644
--- a/svx/inc/svx/srchdlg.hxx
+++ b/svx/inc/svx/srchdlg.hxx
@@ -127,7 +127,6 @@ friend class SvxSearchDialogWrapper;
 friend class SvxJSearchOptionsDialog;
 
 public:
-    SvxSearchDialog( Window* pParent, SfxBindings& rBind );
     SvxSearchDialog( Window* pParent, SfxChildWindow* pChildWin, SfxBindings& rBind );
     ~SvxSearchDialog();
 
@@ -136,9 +135,6 @@ public:
     // Window
     virtual void    Activate();
 
-    void            GetSearchItems( SfxItemSet& rSet );
-    void            GetReplaceItems( SfxItemSet& rSet );
-
     const SearchAttrItemList*   GetSearchItemList() const
                                     { return pSearchList; }
     const SearchAttrItemList*   GetReplaceItemList() const
diff --git a/svx/source/dialog/srchdlg.cxx b/svx/source/dialog/srchdlg.cxx
index 305436b..d090ff6 100644
--- a/svx/source/dialog/srchdlg.cxx
+++ b/svx/source/dialog/srchdlg.cxx
@@ -336,18 +336,6 @@ void SearchAttrItemList::Remove( sal_uInt16 nPos, sal_uInt16 nLen )
 
 // class SvxSearchDialog -------------------------------------------------
 
-SvxSearchDialog::SvxSearchDialog( Window* pParent, SfxBindings& rBind ) :
-
-    SfxModelessDialog( &rBind, NULL, pParent, SVX_RES( RID_SVXDLG_SEARCH ) ),
-
-    INI_LIST()
-
-{
-    Construct_Impl();
-}
-
-// -----------------------------------------------------------------------
-
 SvxSearchDialog::SvxSearchDialog( Window* pParent, SfxChildWindow* pChildWin, SfxBindings& rBind ) 
:
 
     SfxModelessDialog( &rBind, pChildWin, pParent, SVX_RES( RID_SVXDLG_SEARCH ) ),
@@ -2241,36 +2229,6 @@ IMPL_LINK( SvxSearchDialog, TimeoutHdl_Impl, Timer *, pTimer )
 
 // -----------------------------------------------------------------------
 
-void SvxSearchDialog::GetSearchItems( SfxItemSet& rSet )
-{
-    xub_StrLen nLen;
-
-    if ( !pImpl->bMultiLineEdit )
-        nLen = aSearchAttrText.GetText().Len();
-    else
-        nLen = pImpl->aSearchFormats.GetText().Len();
-
-    if ( nLen && pSearchList )
-        pSearchList->Get( rSet );
-}
-
-// -----------------------------------------------------------------------
-
-void SvxSearchDialog::GetReplaceItems( SfxItemSet& rSet )
-{
-    xub_StrLen nLen;
-
-    if ( !pImpl->bMultiLineEdit )
-        nLen = aReplaceAttrText.GetText().Len();
-    else
-        nLen = pImpl->aReplaceFormats.GetText().Len();
-
-    if ( nLen && pReplaceList )
-        pReplaceList->Get( rSet );
-}
-
-// -----------------------------------------------------------------------
-
 String& SvxSearchDialog::BuildAttrText_Impl( String& rStr,
                                              sal_Bool bSrchFlag ) const
 {
diff --git a/unusedcode.easy b/unusedcode.easy
index 647b4f3..4f32554 100755
--- a/unusedcode.easy
+++ b/unusedcode.easy
@@ -342,9 +342,6 @@ SvxRelativeField::SvxRelativeField(Window*, long)
 SvxReloadControllerItem::RegisterControl(unsigned short, SfxModule*)
 SvxRubyChildWindow::GetChildWindowId()
 SvxRuler::GetDefTabDist() const
-SvxSearchDialog::GetReplaceItems(SfxItemSet&)
-SvxSearchDialog::GetSearchItems(SfxItemSet&)
-SvxSearchDialog::SvxSearchDialog(Window*, SfxBindings&)
 SvxSelectionModeControl::GetDefItemWidth(StatusBar const&)
 SvxShapeText::SvxShapeText()
 SvxTabStopArr::Insert(SvxTabStop 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.