mac: Remove unused action handler
authorCheng Zhao <zcbenz@gmail.com>
Sat, 25 Apr 2015 12:41:12 +0000 (20:41 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Sat, 25 Apr 2015 12:41:12 +0000 (20:41 +0800)
atom/browser/mac/atom_application.h
atom/browser/mac/atom_application.mm
atom/browser/native_window_mac.mm

index a418020..9fafb05 100644 (file)
@@ -18,6 +18,4 @@
 // CrAppControlProtocol:
 - (void)setHandlingSendEvent:(BOOL)handlingSendEvent;
 
-- (IBAction)closeAllWindows:(id)sender;
-
 @end
index b837718..9eaabc4 100644 (file)
            andEventID:kAEGetURL];
 }
 
-- (IBAction)closeAllWindows:(id)sender {
-  atom::Browser::Get()->Quit();
-}
-
 - (void)handleURLEvent:(NSAppleEventDescriptor*)event
         withReplyEvent:(NSAppleEventDescriptor*)replyEvent {
   NSString* url = [
index 24825da..946b2a4 100644 (file)
@@ -184,16 +184,6 @@ static const CGFloat kAtomWindowCornerRadius = 4.0;
     return [super constrainFrameRect:frameRect toScreen:screen];
 }
 
-- (IBAction)reload:(id)sender {
-  content::WebContents* web_contents = shell_->GetWebContents();
-  content::NavigationController::LoadURLParams params(web_contents->GetURL());
-  web_contents->GetController().LoadURLWithParams(params);
-}
-
-- (IBAction)showDevTools:(id)sender {
-  shell_->OpenDevTools(true);
-}
-
 - (id)accessibilityAttributeValue:(NSString*)attribute {
   if (![attribute isEqualToString:@"AXChildren"])
     return [super accessibilityAttributeValue:attribute];