mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-28 01:09:39 +03:00
General cleanup and warning fixes
svn path=/trunk/netsurf/; revision=11486
This commit is contained in:
parent
67c9970e54
commit
620fd90fa7
@ -49,8 +49,6 @@ struct browser_window;
|
||||
|
||||
- (IBAction) backForwardSelected: (id) sender;
|
||||
|
||||
- (IBAction) showHistory: (id) sender;
|
||||
|
||||
- (IBAction) goBack: (id) sender;
|
||||
- (IBAction) goForward: (id) sender;
|
||||
- (IBAction) reloadPage: (id) sender;
|
||||
|
@ -21,8 +21,6 @@
|
||||
#import "desktop/download.h"
|
||||
#import "desktop/gui.h"
|
||||
|
||||
#define UNIMPL() NSLog( @"Function '%s' unimplemented", __func__ )
|
||||
|
||||
@interface DownloadWindowController ()
|
||||
|
||||
@property (readwrite, retain, nonatomic) NSFileHandle *outputFile;
|
||||
|
@ -22,7 +22,6 @@
|
||||
#import "desktop/plotters.h"
|
||||
#import "desktop/history_global_core.h"
|
||||
|
||||
#define UNIMPL() NSLog( @"Function '%s' unimplemented", __func__ )
|
||||
|
||||
@implementation TreeView
|
||||
|
||||
|
@ -345,7 +345,7 @@ static char *gui_get_resource_url( NSString *name, NSString *type )
|
||||
return strdup( [[[NSURL fileURLWithPath: path] absoluteString] UTF8String] );
|
||||
}
|
||||
|
||||
static NSString *cocoa_get_preferences_path()
|
||||
static NSString *cocoa_get_preferences_path( void )
|
||||
{
|
||||
NSArray *paths = NSSearchPathForDirectoriesInDomains( NSApplicationSupportDirectory, NSUserDomainMask, YES );
|
||||
NSCAssert( [paths count] >= 1, @"Where is the application support directory?" );
|
||||
@ -367,7 +367,7 @@ static NSString *cocoa_get_preferences_path()
|
||||
return netsurfPath;
|
||||
}
|
||||
|
||||
static const char *cocoa_get_options_file()
|
||||
static const char *cocoa_get_options_file( void )
|
||||
{
|
||||
NSString *prefPath = [cocoa_get_preferences_path() stringByAppendingPathComponent: @"options"];
|
||||
return [prefPath UTF8String];
|
||||
|
@ -22,7 +22,6 @@
|
||||
|
||||
#import <Cocoa/Cocoa.h>
|
||||
|
||||
#define UNIMPL() NSLog( @"Function '%s' unimplemented", __func__ )
|
||||
|
||||
char *url_to_path(const char *url)
|
||||
{
|
||||
@ -32,6 +31,6 @@ char *url_to_path(const char *url)
|
||||
|
||||
char *path_to_url(const char *path)
|
||||
{
|
||||
UNIMPL();
|
||||
return NULL;
|
||||
return strdup( [[[NSURL fileURLWithPath: [NSString stringWithUTF8String: path]]
|
||||
absoluteString] UTF8String] );
|
||||
}
|
||||
|
@ -32,18 +32,6 @@ void warn_user(const char *warning, const char *detail)
|
||||
NSRunAlertPanel( @"Warning", @"Warning %s: %s", @"OK", nil, nil, warning, detail );
|
||||
}
|
||||
|
||||
query_id query_user(const char *query, const char *detail,
|
||||
const query_callback *cb, void *pw, const char *yes, const char *no)
|
||||
{
|
||||
UNIMPL();
|
||||
return 0;
|
||||
}
|
||||
|
||||
void query_close(query_id qid)
|
||||
{
|
||||
UNIMPL();
|
||||
}
|
||||
|
||||
void PDF_Password(char **owner_pass, char **user_pass, char *path)
|
||||
{
|
||||
UNIMPL();
|
||||
|
Loading…
Reference in New Issue
Block a user