diff options
author | Jochen Nitschke <j.nitschke+logerrit@ok.de> | 2016-03-16 15:34:06 +0100 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-03-17 07:04:20 +0000 |
commit | a9a7768399e95d912509c1e6a277634fd8b388ed (patch) | |
tree | 74012301299d7b639237560e0e2bf9ebf46d4feb /sc/source | |
parent | f3704e5756cafaa638724b227ae6a93df3c98eda (diff) |
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@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sc/source')
-rw-r--r-- | sc/source/ui/inc/scuitphfedit.hxx | 2 | ||||
-rw-r--r-- | sc/source/ui/pagedlg/scuitphfedit.cxx | 22 |
2 files changed, 0 insertions, 24 deletions
diff --git a/sc/source/ui/inc/scuitphfedit.hxx b/sc/source/ui/inc/scuitphfedit.hxx index 326f6b356661..a5b2f8c7d681 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 5a39e36c8e32..72a9f0f5de27 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; |