[Libreoffice-commits] .: svx/inc svx/source unusedcode.easy

Michael Meeks michael at kemper.freedesktop.org
Fri Feb 17 13:41:26 PST 2012


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

New commits:
commit 57c8929c6bf037a767e7016d28b7656cd8fddfb7
Author: Santiago Martinez <smvarela at gmail.com>
Date:   Thu Feb 16 21:34:44 2012 +0100

    Remove unused code in SvxSearchDialog

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 43a51a8..d1331fe 100755
--- a/unusedcode.easy
+++ b/unusedcode.easy
@@ -337,9 +337,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&)


More information about the Libreoffice-commits mailing list