summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorMaxim Monastirsky <momonasmon@gmail.com>2016-09-01 10:19:04 +0300
committerMaxim Monastirsky <momonasmon@gmail.com>2016-09-01 09:39:52 +0000
commit671ac3a9221598febdc6304fceabbb2ade86f41e (patch)
treef9561e28ab36d4c9813698d233c02e7e4b62075a /vcl
parent662f5a5a16339ecda071ea6b95afefeea63c4fe9 (diff)
Looks like the menu highlight handler is now unused
Change-Id: I75ff4bce35e7940e07b760f672e08ffe0dd208f8 Reviewed-on: https://gerrit.libreoffice.org/28580 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Maxim Monastirsky <momonasmon@gmail.com>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/window/menu.cxx16
1 files changed, 0 insertions, 16 deletions
diff --git a/vcl/source/window/menu.cxx b/vcl/source/window/menu.cxx
index c82ecf55ef0e..ee20cecb62c1 100644
--- a/vcl/source/window/menu.cxx
+++ b/vcl/source/window/menu.cxx
@@ -271,18 +271,6 @@ void Menu::Deactivate()
}
}
-void Menu::Highlight()
-{
- ImplMenuDelData aDelData( this );
-
- Menu* pStartMenu = ImplGetStartMenu();
- if ( !aHighlightHdl.Call( this ) && !aDelData.isDeleted() )
- {
- if ( pStartMenu && ( pStartMenu != this ) )
- pStartMenu->aHighlightHdl.Call( this );
- }
-}
-
void Menu::ImplSelect()
{
MenuItemData* pData = GetItemList()->GetData( nSelectedId );
@@ -1229,7 +1217,6 @@ Menu& Menu::operator=( const Menu& rMenu )
nDefaultItem = rMenu.nDefaultItem;
aActivateHdl = rMenu.aActivateHdl;
aDeactivateHdl = rMenu.aDeactivateHdl;
- aHighlightHdl = rMenu.aHighlightHdl;
aSelectHdl = rMenu.aSelectHdl;
aTitleText = rMenu.aTitleText;
nTitleHeight = rMenu.nTitleHeight;
@@ -2166,10 +2153,7 @@ void Menu::ImplCallHighlight(sal_uInt16 nItem)
ImplCallEventListeners( VCLEVENT_MENU_HIGHLIGHT, GetItemPos( GetCurItemId() ) );
if( !aDelData.isDeleted() )
- {
- Highlight();
nSelectedId = 0;
- }
}
IMPL_LINK_NOARG_TYPED(Menu, ImplCallSelect, void*, void)