Skip to content

Commit

Permalink
remove _updateSubmenu method
Browse files Browse the repository at this point in the history
  • Loading branch information
williameveretteggplant authored Oct 15, 2024
1 parent 4be0d3d commit 6330587
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions Source/NSMenu.m
Original file line number Diff line number Diff line change
Expand Up @@ -916,31 +916,6 @@ - (BOOL) autoenablesItems
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:)])
Expand Down

0 comments on commit 6330587

Please sign in to comment.