[Libreoffice-commits] core.git: cui/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Wed Feb 20 15:28:23 UTC 2019


 cui/source/dialogs/hangulhanjadlg.cxx |   13 +------------
 cui/source/inc/hangulhanjadlg.hxx     |    1 -
 2 files changed, 1 insertion(+), 13 deletions(-)

New commits:
commit fbd86a73dc3c1909dc088ae147a8bef519983d68
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Wed Feb 20 11:08:10 2019 +0000
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Wed Feb 20 16:27:56 2019 +0100

    m_pIgnoreNonPrimary is not used
    
    Change-Id: I86198f7b4476a2a7b61daf3f21f3bd43a18de77f
    Reviewed-on: https://gerrit.libreoffice.org/68070
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/cui/source/dialogs/hangulhanjadlg.cxx b/cui/source/dialogs/hangulhanjadlg.cxx
index b544e339d911..78c0ddf1db3f 100644
--- a/cui/source/dialogs/hangulhanjadlg.cxx
+++ b/cui/source/dialogs/hangulhanjadlg.cxx
@@ -550,9 +550,8 @@ namespace svx
 
     VCL_BUILDER_FACTORY_ARGS( SuggestionDisplay, WB_ITEMBORDER | WB_FLATVALUESET | WB_VSCROLL );
 
-    HangulHanjaConversionDialog::HangulHanjaConversionDialog( vcl::Window* _pParent, HHC::ConversionDirection _ePrimaryDirection )
+    HangulHanjaConversionDialog::HangulHanjaConversionDialog( vcl::Window* _pParent, HHC::ConversionDirection )
         :ModalDialog( _pParent, "HangulHanjaConversionDialog", "cui/ui/hangulhanjaconversiondialog.ui" )
-        ,m_pIgnoreNonPrimary( nullptr )
         ,m_bDocumentMode( true )
     {
         get( m_pFind, "find" );
@@ -593,15 +592,6 @@ namespace svx
         m_pHanjaOnly->SetClickHdl(  LINK( this,  HangulHanjaConversionDialog, OnConversionDirectionClicked ) );
         m_pOptions->SetClickHdl( LINK( this, HangulHanjaConversionDialog, OnOption ) );
 
-        if ( editeng::HangulHanjaConversion::eHangulToHanja == _ePrimaryDirection )
-        {
-            m_pIgnoreNonPrimary = m_pHangulOnly;
-        }
-        else
-        {
-            m_pIgnoreNonPrimary = m_pHanjaOnly;
-        }
-
         // initial focus
         FocusSuggestion( );
 
@@ -637,7 +627,6 @@ namespace svx
         m_pHangulOnly.clear();
         m_pHanjaOnly.clear();
         m_pReplaceByChar.clear();
-        m_pIgnoreNonPrimary.clear();
         ModalDialog::dispose();
     }
 
diff --git a/cui/source/inc/hangulhanjadlg.hxx b/cui/source/inc/hangulhanjadlg.hxx
index 2af5257cb17b..1d861d8c0c42 100644
--- a/cui/source/inc/hangulhanjadlg.hxx
+++ b/cui/source/inc/hangulhanjadlg.hxx
@@ -126,7 +126,6 @@ namespace svx
         VclPtr<CheckBox>           m_pHanjaOnly;
         VclPtr<CheckBox>           m_pReplaceByChar;
 
-        VclPtr<CheckBox>           m_pIgnoreNonPrimary;
         /** are we working for a document? This is normally true, but in case
             the user uses the "find" functionality, we switch to working
             with what the user entered, which then does not have any relation to


More information about the Libreoffice-commits mailing list