OSDN Git Service

Since the user repsonse to the alert dialogs is not used, don't bother storing it.
authorEric Branlund <ebranlund@fastmail.com>
Wed, 26 Feb 2020 06:10:45 +0000 (22:10 -0800)
committerEric Branlund <ebranlund@fastmail.com>
Wed, 26 Feb 2020 06:10:45 +0000 (22:10 -0800)
src/main-cocoa.m

index b3564e7..451ae3f 100644 (file)
@@ -2800,7 +2800,7 @@ static errr Term_xtra_cocoa_react(void)
 
                    alert.messageText = msg;
                    alert.informativeText = info;
-                   NSModalResponse result = [alert runModal];
+                   [alert runModal];
                }
            }
 
@@ -3911,7 +3911,7 @@ static void hook_plog(const char * str)
 
        alert.messageText = msg;
        alert.informativeText = info;
-       NSModalResponse result = [alert runModal];
+       [alert runModal];
     }
 }
 
@@ -3965,7 +3965,7 @@ static NSString* get_lib_directory(void)
        alert.messageText = msg;
        alert.informativeText = info;
        [alert addButtonWithTitle:quit_label];
-       NSModalResponse result = [alert runModal];
+       [alert runModal];
        exit( 0 );
     }