OSDN Git Service

Removed AngbandContext's validateMenuItem since it does not host setGraphicsMode...
authorEric Branlund <ebranlund@fastmail.com>
Thu, 20 Feb 2020 07:47:35 +0000 (23:47 -0800)
committerEric Branlund <ebranlund@fastmail.com>
Thu, 20 Feb 2020 07:47:35 +0000 (23:47 -0800)
src/main-cocoa.m

index 3b79ef6..9f6c27e 100644 (file)
@@ -1504,21 +1504,6 @@ static size_t Term_mbcs_cocoa(wchar_t *dest, const char *src, int n)
 }
 
 
-- (BOOL)validateMenuItem:(NSMenuItem *)menuItem
-{
-    int tag = [menuItem tag];
-    SEL sel = [menuItem action];
-    if (sel == @selector(setGraphicsMode:))
-    {
-        [menuItem setState: (tag == graf_mode_req)];
-        return YES;
-    }
-    else
-    {
-        return YES;
-    }
-}
-
 - (NSWindow *)makePrimaryWindow
 {
     if (! primaryWindow)