summaryrefslogtreecommitdiff
path: root/chart2
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-10-14 08:41:12 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-10-15 12:53:27 +0200
commitafed3d177b8bfbc98d631867f200486bc2963e03 (patch)
treeed05d122e0b648c85d17f83e7901b2ccff52d4dc /chart2
parentbb234655bfdd60c64a0511918f835c3cfbde789a (diff)
loplugin:unusedfields
Change-Id: I4ebd1e89daf7ba5e6ab709f56c0fec5b49f50dd0 Reviewed-on: https://gerrit.libreoffice.org/61774 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'chart2')
-rw-r--r--chart2/source/controller/dialogs/res_LegendPosition.cxx26
-rw-r--r--chart2/source/controller/inc/res_LegendPosition.hxx5
2 files changed, 0 insertions, 31 deletions
diff --git a/chart2/source/controller/dialogs/res_LegendPosition.cxx b/chart2/source/controller/dialogs/res_LegendPosition.cxx
index 0d6963266ec9..8eab04a77e0f 100644
--- a/chart2/source/controller/dialogs/res_LegendPosition.cxx
+++ b/chart2/source/controller/dialogs/res_LegendPosition.cxx
@@ -248,7 +248,6 @@ SchLegendPositionResources::SchLegendPositionResources(weld::Builder& rBuilder)
, m_xRbtTop(rBuilder.weld_radio_button("top"))
, m_xRbtBottom(rBuilder.weld_radio_button("bottom"))
{
- impl_setRadioButtonToggleHdl();
}
SchLegendPositionResources::SchLegendPositionResources(weld::Builder& rBuilder,
@@ -261,15 +260,6 @@ SchLegendPositionResources::SchLegendPositionResources(weld::Builder& rBuilder,
, m_xRbtBottom(rBuilder.weld_radio_button("bottom"))
{
m_xCbxShow->connect_toggled(LINK(this, SchLegendPositionResources, PositionEnableHdl));
- impl_setRadioButtonToggleHdl();
-}
-
-void SchLegendPositionResources::impl_setRadioButtonToggleHdl()
-{
- m_xRbtLeft->connect_toggled(LINK(this, SchLegendPositionResources, PositionChangeHdl));
- m_xRbtTop->connect_toggled(LINK(this, SchLegendPositionResources, PositionChangeHdl));
- m_xRbtRight->connect_toggled(LINK(this, SchLegendPositionResources, PositionChangeHdl));
- m_xRbtBottom->connect_toggled(LINK(this, SchLegendPositionResources, PositionChangeHdl));
}
SchLegendPositionResources::~SchLegendPositionResources()
@@ -374,8 +364,6 @@ IMPL_LINK_NOARG(SchLegendPositionResources, PositionEnableHdl, weld::ToggleButto
m_xRbtTop->set_sensitive( bEnable );
m_xRbtRight->set_sensitive( bEnable );
m_xRbtBottom->set_sensitive( bEnable );
-
- m_aChangeLink.Call(nullptr);
}
void SchLegendPositionResources::initFromItemSet( const SfxItemSet& rInAttrs )
@@ -426,20 +414,6 @@ void SchLegendPositionResources::writeToItemSet( SfxItemSet& rOutAttrs ) const
rOutAttrs.Put( SfxBoolItem(SCHATTR_LEGEND_SHOW, !m_xCbxShow || m_xCbxShow->get_active()) );
}
-IMPL_LINK(SchLegendPositionResources, PositionChangeHdl, weld::ToggleButton&, rRadio, void )
-{
- //for each radio click there are coming two change events
- //first uncheck of previous button -> ignore that call
- //the second call gives the check of the new button
- if (rRadio.get_active())
- m_aChangeLink.Call(nullptr);
-}
-
-void SchLegendPositionResources::SetChangeHdl( const Link<LinkParamNone*,void>& rLink )
-{
- m_aChangeLink = rLink;
-}
-
} //namespace chart
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/chart2/source/controller/inc/res_LegendPosition.hxx b/chart2/source/controller/inc/res_LegendPosition.hxx
index 1568781e4818..149fbc5336a4 100644
--- a/chart2/source/controller/inc/res_LegendPosition.hxx
+++ b/chart2/source/controller/inc/res_LegendPosition.hxx
@@ -90,14 +90,9 @@ public:
void SetChangeHdl( const Link<LinkParamNone*,void>& rLink );
DECL_LINK(PositionEnableHdl, weld::ToggleButton&, void);
- DECL_LINK(PositionChangeHdl, weld::ToggleButton&, void);
-
-private:
- void impl_setRadioButtonToggleHdl();
private:
css::uno::Reference< css::uno::XComponentContext> m_xCC;
- Link<LinkParamNone*,void> m_aChangeLink;
std::unique_ptr<weld::CheckButton> m_xCbxShow;
std::unique_ptr<weld::RadioButton> m_xRbtLeft;