Kaydet (Commit) 041f2fb1 authored tarafından Michael Meeks's avatar Michael Meeks Kaydeden (comit) Bjoern Michaelsen

remove redundant commented code.

Change-Id: Ia311bdd148cf4c346c187d3b37964b12cded1212
üst 6bea834b
...@@ -82,7 +82,7 @@ public: ...@@ -82,7 +82,7 @@ public:
virtual bool AddMenuBarButton( const SalMenuButtonItem& ); // return false if not implemented or failure virtual bool AddMenuBarButton( const SalMenuButtonItem& ); // return false if not implemented or failure
virtual void RemoveMenuBarButton( sal_uInt16 nId ); virtual void RemoveMenuBarButton( sal_uInt16 nId );
// FIXME: Make the other VCL native backends to work with these new methods. // TODO: implement show/hide for the Win/Mac VCL native backends
virtual void ShowItem( unsigned nPos, sal_Bool bShow ) { EnableItem( nPos, bShow ); } virtual void ShowItem( unsigned nPos, sal_Bool bShow ) { EnableItem( nPos, bShow ); }
// return an empty rectangle if not implemented // return an empty rectangle if not implemented
......
...@@ -1797,10 +1797,7 @@ void Menu::ShowItem( sal_uInt16 nItemId, sal_Bool bVisible ) ...@@ -1797,10 +1797,7 @@ void Menu::ShowItem( sal_uInt16 nItemId, sal_Bool bVisible )
pData->bVisible = bVisible; pData->bVisible = bVisible;
// update native menu // update native menu
// as long as there is no support to hide native menu entries, we just disable them
// TODO: add support to show/hide native menu entries
if( ImplGetSalMenu() ) if( ImplGetSalMenu() )
// ImplGetSalMenu()->EnableItem( nPos, bVisible );
ImplGetSalMenu()->ShowItem( nPos, bVisible ); ImplGetSalMenu()->ShowItem( nPos, bVisible );
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment