[Libreoffice-commits] .: vcl/inc vcl/source

Joseph Powers jpowers at kemper.freedesktop.org
Wed Aug 3 06:54:47 PDT 2011


 vcl/inc/vcl/menu.hxx       |    5 -----
 vcl/source/window/menu.cxx |   15 ---------------
 2 files changed, 20 deletions(-)

New commits:
commit 1d79e63c1ba1562f4fd198f1403457faaf202683
Author: Joseph Powers <jpowers27 at cox.net>
Date:   Wed Aug 3 06:54:10 2011 -0700

    unusedcode.easy: Removed some members.

diff --git a/vcl/inc/vcl/menu.hxx b/vcl/inc/vcl/menu.hxx
index fd8811f..80aa68d 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 4a6815a..a4ca8d5 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;


More information about the Libreoffice-commits mailing list