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

Jochen Nitschke j.nitschke+logerrit at ok.de
Thu Mar 17 07:04:56 UTC 2016


 sc/source/ui/inc/scuitphfedit.hxx     |    2 --
 sc/source/ui/pagedlg/scuitphfedit.cxx |   22 ----------------------
 2 files changed, 24 deletions(-)

New commits:
commit a9a7768399e95d912509c1e6a277634fd8b388ed
Author: Jochen Nitschke <j.nitschke+logerrit at ok.de>
Date:   Wed Mar 16 15:34:06 2016 +0100

    sc: remove unused member variable
    
    aCmdArr is only set but never used
    
    Change-Id: I90b2b954383122696190692890fa1fb6143486f4
    Reviewed-on: https://gerrit.libreoffice.org/23306
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Noel Grandin <noelgrandin at gmail.com>

diff --git a/sc/source/ui/inc/scuitphfedit.hxx b/sc/source/ui/inc/scuitphfedit.hxx
index 326f6b3..a5b2f8c 100644
--- a/sc/source/ui/inc/scuitphfedit.hxx
+++ b/sc/source/ui/inc/scuitphfedit.hxx
@@ -85,12 +85,10 @@ private:
     ScEditWindow * m_pEditFocus; ///one of m_pWndLeft, m_pWndCenter, m_pWndRight
 
     sal_uInt16       nWhich;
-    OUString         aCmdArr[6];
 
     DECL_LINK_TYPED( ObjectSelectHdl, ScEditWindow&, void );
 
 private:
-    void FillCmdArr();
     void InitPreDefinedList();
     void ProcessDefinedListSel(ScHFEntryId eSel, bool bTravelling = false);
     void InsertToDefinedList();
diff --git a/sc/source/ui/pagedlg/scuitphfedit.cxx b/sc/source/ui/pagedlg/scuitphfedit.cxx
index 5a39e36..72a9f0f 100644
--- a/sc/source/ui/pagedlg/scuitphfedit.cxx
+++ b/sc/source/ui/pagedlg/scuitphfedit.cxx
@@ -146,7 +146,6 @@ ScHFEditPage::ScHFEditPage( vcl::Window*             pParent,
     m_pWndLeft->SetGetFocusHdl(setEditFocus);
     m_pWndCenter->SetGetFocusHdl(setEditFocus);
     m_pWndRight->SetGetFocusHdl(setEditFocus);
-    FillCmdArr();
 
     m_pWndLeft->GrabFocus();
     m_pEditFocus = m_pWndLeft; // there's no event from GrabFocus()
@@ -234,27 +233,6 @@ bool ScHFEditPage::FillItemSet( SfxItemSet* rCoreSet )
     return true;
 }
 
-#define SET_CMD(i,id) \
-    aCmd  = aDel;                           \
-    aCmd += ScGlobal::GetRscString( id );   \
-    aCmd += aDel;                           \
-    aCmdArr[i] = aCmd;
-
-void ScHFEditPage::FillCmdArr()
-{
-    OUString aDel( ScGlobal::GetRscString( STR_HFCMD_DELIMITER ) );
-    OUString aCmd;
-
-    SET_CMD( 0, STR_HFCMD_PAGE )
-    SET_CMD( 1, STR_HFCMD_PAGES )
-    SET_CMD( 2, STR_HFCMD_DATE )
-    SET_CMD( 3, STR_HFCMD_TIME )
-    SET_CMD( 4, STR_HFCMD_FILE )
-    SET_CMD( 5, STR_HFCMD_TABLE )
-}
-
-#undef SET_CMD
-
 void ScHFEditPage::InitPreDefinedList()
 {
     SvtUserOptions aUserOpt;


More information about the Libreoffice-commits mailing list