diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-05-16 14:05:56 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-05-18 09:17:43 +0200 |
commit | 4c05834a363535804d2cf5892704e19a5bb4f966 (patch) | |
tree | 43226f521a491e833bdd3f18b1655e945018ba64 /sw | |
parent | 60861faa8653afebb504cfbcaeed633d2373a27d (diff) |
loplugin:unusedmethods
Change-Id: I1c50d176e793397a1f9625f797a3750cf191a61c
Reviewed-on: https://gerrit.libreoffice.org/37679
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/ui/fldui/fldfunc.cxx | 24 | ||||
-rw-r--r-- | sw/source/ui/fldui/fldfunc.hxx | 1 |
2 files changed, 0 insertions, 25 deletions
diff --git a/sw/source/ui/fldui/fldfunc.cxx b/sw/source/ui/fldui/fldfunc.cxx index 0c9587bb0013..b06f044c4cd9 100644 --- a/sw/source/ui/fldui/fldfunc.cxx +++ b/sw/source/ui/fldui/fldfunc.cxx @@ -600,30 +600,6 @@ bool SwFieldFuncPage::FillItemSet(SfxItemSet* ) return false; } -OUString SwFieldFuncPage::TurnMacroString(const OUString &rMacro) -{ - if (!rMacro.isEmpty()) - { - // reverse content of aName - OUString sMacro; - sal_Int32 nPos = 0; - - for (int i = 0; i < 4 && nPos != -1; i++) - { - OUString sTmp = (i == 3) - ? rMacro.copy(nPos) - : rMacro.getToken(0, '.', nPos); - - sMacro = !sMacro.isEmpty() - ? sTmp + "." + sMacro - : sTmp; - } - return sMacro; - } - - return rMacro; -} - VclPtr<SfxTabPage> SwFieldFuncPage::Create( vcl::Window* pParent, const SfxItemSet *const pAttrSet) { diff --git a/sw/source/ui/fldui/fldfunc.hxx b/sw/source/ui/fldui/fldfunc.hxx index 2f969b2af15d..3789057d6ac1 100644 --- a/sw/source/ui/fldui/fldfunc.hxx +++ b/sw/source/ui/fldui/fldfunc.hxx @@ -80,7 +80,6 @@ class SwFieldFuncPage : public SwFieldPage DECL_LINK( MacroHdl, Button *, void ); void UpdateSubType(); - static OUString TurnMacroString(const OUString &rMacro); protected: virtual sal_uInt16 GetGroup() override; |