summaryrefslogtreecommitdiff
path: root/vcl/source
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2015-09-06 18:37:21 +0200
committerNoel Grandin <noelgrandin@gmail.com>2015-09-09 08:08:56 +0000
commit5ab7806d6c8e2d155fc022ace19f83afbe5f9e68 (patch)
tree46d64fdf4c012ceef017a2f186d8d826bfadd242 /vcl/source
parenta622aaf28fbf01a4de44c9e5c2c85b46bf63697b (diff)
remove unused Link<> fields
Change-Id: Ifed1a8cfa774225cb450bb211b1b1b949ef02811 Reviewed-on: https://gerrit.libreoffice.org/18429 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'vcl/source')
-rw-r--r--vcl/source/window/menubarwindow.cxx14
-rw-r--r--vcl/source/window/menubarwindow.hxx2
2 files changed, 0 insertions, 16 deletions
diff --git a/vcl/source/window/menubarwindow.cxx b/vcl/source/window/menubarwindow.cxx
index d3ac8d6a680a..772894334f59 100644
--- a/vcl/source/window/menubarwindow.cxx
+++ b/vcl/source/window/menubarwindow.cxx
@@ -153,11 +153,9 @@ MenuBarWindow::MenuBarWindow( vcl::Window* pParent ) :
aCloseBtn->AddEventListener(LINK(this, MenuBarWindow, ToolboxEventHdl));
aCloseBtn->SetQuickHelpText(IID_DOCUMENTCLOSE, ResId(SV_HELPTEXT_CLOSEDOCUMENT, *pResMgr).toString());
- aFloatBtn->SetClickHdl( LINK( this, MenuBarWindow, FloatHdl ) );
aFloatBtn->SetSymbol( SymbolType::FLOAT );
aFloatBtn->SetQuickHelpText( ResId(SV_HELPTEXT_RESTORE, *pResMgr).toString() );
- aHideBtn->SetClickHdl( LINK( this, MenuBarWindow, HideHdl ) );
aHideBtn->SetSymbol( SymbolType::HIDE );
aHideBtn->SetQuickHelpText( ResId(SV_HELPTEXT_MINIMIZE, *pResMgr).toString() );
}
@@ -289,18 +287,6 @@ IMPL_LINK( MenuBarWindow, ShowHideListener, VclWindowEvent*, pEvent )
return 0;
}
-IMPL_LINK_NOARG_TYPED(MenuBarWindow, FloatHdl, Button*, void)
-{
- if (pMenu)
- static_cast<MenuBar*>(pMenu)->GetFloatButtonClickHdl().Call( pMenu );
-}
-
-IMPL_LINK_NOARG_TYPED(MenuBarWindow, HideHdl, Button*, void)
-{
- if (pMenu)
- static_cast<MenuBar*>(pMenu)->GetHideButtonClickHdl().Call( pMenu );
-}
-
void MenuBarWindow::ImplCreatePopup( bool bPreSelectFirst )
{
MenuItemData* pItemData = pMenu ? pMenu->GetItemList()->GetDataFromPos( nHighlightedItem ) : NULL;
diff --git a/vcl/source/window/menubarwindow.hxx b/vcl/source/window/menubarwindow.hxx
index 70040668dbbd..da15f86f9d61 100644
--- a/vcl/source/window/menubarwindow.hxx
+++ b/vcl/source/window/menubarwindow.hxx
@@ -104,8 +104,6 @@ private:
virtual void ApplySettings(vcl::RenderContext& rRenderContext) SAL_OVERRIDE;
DECL_LINK_TYPED(CloseHdl, ToolBox*, void);
- DECL_LINK_TYPED(FloatHdl, Button*, void);
- DECL_LINK_TYPED(HideHdl, Button*, void);
DECL_LINK( ToolboxEventHdl, VclWindowEvent* );
DECL_LINK( ShowHideListener, VclWindowEvent* );