remove _updateSubmenu method

This commit is contained in:
williameveretteggplant 2024-10-15 14:20:21 -06:00 committed by GitHub
parent 4be0d3d1e4
commit 633058738e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -916,31 +916,6 @@ static BOOL menuBarVisible = YES;
return _menu.autoenable;
}
- (void) _updateSubmenu
{
if ([self _isVisible])
{
// Update the menu items when the menu is visible...
[self update];
}
else
{
// ...else only progress to submenus
NSUInteger i;
NSUInteger count = [_items count];
for (i = 0; i < count; i++)
{
NSMenuItem *item = [_items objectAtIndex: i];
if ([item hasSubmenu])
{
[[item submenu] _updateSubmenu];
}
}
}
}
- (void) _updateMenuWithDelegate
{
if ([_delegate respondsToSelector: @selector(menuNeedsUpdate:)])