diff options
author | Noel <noelgrandin@gmail.com> | 2020-11-12 11:34:25 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-11-12 16:54:19 +0100 |
commit | d9f0e8db9aa9e914e22f07c046c74f0c83c6e81a (patch) | |
tree | 99d7fb6805111ae841501557cf699a0af973cf13 /sfx2 | |
parent | 392d219b30d6e6e3e636673ed6aa528811356cd2 (diff) |
loplugin:unusedmethods
Change-Id: I90d402a5c18ab16424a042bcea1470fa8a3a5839
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105629
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/inc/sidebar/Tools.hxx | 3 | ||||
-rw-r--r-- | sfx2/source/sidebar/Tools.cxx | 33 |
2 files changed, 0 insertions, 36 deletions
diff --git a/sfx2/inc/sidebar/Tools.hxx b/sfx2/inc/sidebar/Tools.hxx index b5c0c693713c..8c795dfed1c4 100644 --- a/sfx2/inc/sidebar/Tools.hxx +++ b/sfx2/inc/sidebar/Tools.hxx @@ -45,9 +45,6 @@ public: const OUString& rsURL, const css::uno::Reference<css::frame::XFrame>& rxFrame); - static css::awt::Gradient VclToAwtGradient (const Gradient& rGradient); - static Gradient AwtToVclGradient (const css::awt::Gradient& rGradient); - static css::util::URL GetURL (const OUString& rsCommand); static css::uno::Reference<css::frame::XDispatch> GetDispatch ( const css::uno::Reference<css::frame::XFrame>& rxFrame, diff --git a/sfx2/source/sidebar/Tools.cxx b/sfx2/source/sidebar/Tools.cxx index ef9dce06cab6..de2ebdd0ae1b 100644 --- a/sfx2/source/sidebar/Tools.cxx +++ b/sfx2/source/sidebar/Tools.cxx @@ -69,39 +69,6 @@ css::uno::Reference<css::graphic::XGraphic> Tools::GetImage( return nullptr; } -css::awt::Gradient Tools::VclToAwtGradient (const Gradient& rVclGradient) -{ - css::awt::Gradient aAwtGradient ( - awt::GradientStyle(rVclGradient.GetStyle()), - sal_Int32(rVclGradient.GetStartColor().GetRGBColor()), - sal_Int32(rVclGradient.GetEndColor().GetRGBColor()), - rVclGradient.GetAngle().get(), - rVclGradient.GetBorder(), - rVclGradient.GetOfsX(), - rVclGradient.GetOfsY(), - rVclGradient.GetStartIntensity(), - rVclGradient.GetEndIntensity(), - rVclGradient.GetSteps()); - return aAwtGradient; -} - -Gradient Tools::AwtToVclGradient (const css::awt::Gradient& rAwtGradient) -{ - Gradient aVclGradient ( - GradientStyle(rAwtGradient.Style), - Color(rAwtGradient.StartColor), - Color(rAwtGradient.EndColor)); - aVclGradient.SetAngle(Degree10(rAwtGradient.Angle)); - aVclGradient.SetBorder(rAwtGradient.Border); - aVclGradient.SetOfsX(rAwtGradient.XOffset); - aVclGradient.SetOfsY(rAwtGradient.YOffset); - aVclGradient.SetStartIntensity(rAwtGradient.StartIntensity); - aVclGradient.SetEndIntensity(rAwtGradient.EndIntensity); - aVclGradient.SetSteps(rAwtGradient.StepCount); - - return aVclGradient; -} - util::URL Tools::GetURL (const OUString& rsCommand) { util::URL aURL; |