mirror of
https://github.com/atom/atom.git
synced 2026-01-24 22:38:20 -05:00
Not using these. #technicaldebt
This commit is contained in:
@@ -4,9 +4,6 @@
|
||||
#import "JSCocoa.h"
|
||||
|
||||
#import <WebKit/WebKit.h>
|
||||
#import <stdio.h>
|
||||
#import <sys/types.h>
|
||||
#import <dirent.h>
|
||||
|
||||
@implementation AtomController
|
||||
|
||||
@@ -52,17 +49,6 @@
|
||||
[[webView mainFrame] loadRequest:request];
|
||||
}
|
||||
|
||||
// Helper methods that should go elsewhere
|
||||
- (NSString *)tempfile {
|
||||
char *directory = "/tmp";
|
||||
char *prefix = "temp-file";
|
||||
char *tmpPath = tempnam(directory, prefix);
|
||||
NSString *tmpPathString = [NSString stringWithUTF8String:tmpPath];
|
||||
free(tmpPath);
|
||||
|
||||
return tmpPathString;
|
||||
}
|
||||
|
||||
// WebUIDelegate
|
||||
- (NSArray *)webView:(WebView *)sender contextMenuItemsForElement:(NSDictionary *)element defaultMenuItems:(NSArray *)defaultMenuItems {
|
||||
return defaultMenuItems;
|
||||
|
||||
Reference in New Issue
Block a user