Not using these. #technicaldebt

This commit is contained in:
Corey Johnson
2011-11-10 13:42:34 -08:00
parent f8efdba497
commit 41b9b954b5

View File

@@ -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;