summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Powers <jpowers27@cox.net>2011-08-03 06:54:10 -0700
committerJoseph Powers <jpowers27@cox.net>2011-08-03 06:54:10 -0700
commit1d79e63c1ba1562f4fd198f1403457faaf202683 (patch)
tree98dfa8211875066fe994df001b46bfad008a7acb
parenta8582d9d84560cb1076bc586ba60fa24c648155c (diff)
unusedcode.easy: Removed some members.
-rw-r--r--vcl/inc/vcl/menu.hxx5
-rw-r--r--vcl/source/window/menu.cxx15
2 files changed, 0 insertions, 20 deletions
diff --git a/vcl/inc/vcl/menu.hxx b/vcl/inc/vcl/menu.hxx
index fd8811faeb..80aa68d35e 100644
--- a/vcl/inc/vcl/menu.hxx
+++ b/vcl/inc/vcl/menu.hxx
@@ -409,9 +409,7 @@ public:
void ShowCloser( sal_Bool bShow = sal_True );
sal_Bool HasCloser() const { return mbCloserVisible; }
- void ShowFloatButton( sal_Bool bShow = sal_True );
sal_Bool HasFloatButton() const { return mbFloatBtnVisible; }
- void ShowHideButton( sal_Bool bShow = sal_True );
sal_Bool HasHideButton() const { return mbHideBtnVisible; }
void ShowButtons( sal_Bool bClose, sal_Bool bFloat, sal_Bool bHide );
@@ -444,9 +442,6 @@ public:
};
// add an arbitrary button to the menubar (will appear next to closer)
// passed link will be call with a MenuBarButtonCallbackArg on press
- sal_uInt16 AddMenuBarButton( const Image&, const Link&, sal_uInt16 nPos = 0 );
- // add an arbitrary button to the menubar (will appear next to closer)
- // passed link will be call with a MenuBarButtonCallbackArg on press
// passed string will be set as tooltip
sal_uInt16 AddMenuBarButton( const Image&, const Link&, const String&, sal_uInt16 nPos = 0 );
// set the highlight link for additional button with ID nId
diff --git a/vcl/source/window/menu.cxx b/vcl/source/window/menu.cxx
index 4a6815aa6f..a4ca8d509d 100644
--- a/vcl/source/window/menu.cxx
+++ b/vcl/source/window/menu.cxx
@@ -3327,16 +3327,6 @@ void MenuBar::ShowCloser( sal_Bool bShow )
ShowButtons( bShow, mbFloatBtnVisible, mbHideBtnVisible );
}
-void MenuBar::ShowFloatButton( sal_Bool bShow )
-{
- ShowButtons( mbCloserVisible, bShow, mbHideBtnVisible );
-}
-
-void MenuBar::ShowHideButton( sal_Bool bShow )
-{
- ShowButtons( mbCloserVisible, mbFloatBtnVisible, bShow );
-}
-
void MenuBar::ShowButtons( sal_Bool bClose, sal_Bool bFloat, sal_Bool bHide )
{
if ( (bClose != mbCloserVisible) ||
@@ -3506,11 +3496,6 @@ sal_Bool MenuBar::HandleMenuCommandEvent( Menu *pMenu, sal_uInt16 nCommandEventI
return sal_False;
}
-sal_uInt16 MenuBar::AddMenuBarButton( const Image& i_rImage, const Link& i_rLink, sal_uInt16 i_nPos )
-{
- return AddMenuBarButton( i_rImage, i_rLink, String(), i_nPos );
-}
-
sal_uInt16 MenuBar::AddMenuBarButton( const Image& i_rImage, const Link& i_rLink, const String& i_rToolTip, sal_uInt16 i_nPos )
{
return pWindow ? static_cast<MenuBarWindow*>(pWindow)->AddMenuBarButton( i_rImage, i_rLink, i_rToolTip, i_nPos ) : 0;