General cleanup and warning fixes

svn path=/trunk/netsurf/; revision=11486
This commit is contained in:
Sven Weidauer 2011-01-25 17:16:20 +00:00
parent 67c9970e54
commit 620fd90fa7
6 changed files with 4 additions and 22 deletions

View File

@ -49,8 +49,6 @@ struct browser_window;
- (IBAction) backForwardSelected: (id) sender; - (IBAction) backForwardSelected: (id) sender;
- (IBAction) showHistory: (id) sender;
- (IBAction) goBack: (id) sender; - (IBAction) goBack: (id) sender;
- (IBAction) goForward: (id) sender; - (IBAction) goForward: (id) sender;
- (IBAction) reloadPage: (id) sender; - (IBAction) reloadPage: (id) sender;

View File

@ -21,8 +21,6 @@
#import "desktop/download.h" #import "desktop/download.h"
#import "desktop/gui.h" #import "desktop/gui.h"
#define UNIMPL() NSLog( @"Function '%s' unimplemented", __func__ )
@interface DownloadWindowController () @interface DownloadWindowController ()
@property (readwrite, retain, nonatomic) NSFileHandle *outputFile; @property (readwrite, retain, nonatomic) NSFileHandle *outputFile;

View File

@ -22,7 +22,6 @@
#import "desktop/plotters.h" #import "desktop/plotters.h"
#import "desktop/history_global_core.h" #import "desktop/history_global_core.h"
#define UNIMPL() NSLog( @"Function '%s' unimplemented", __func__ )
@implementation TreeView @implementation TreeView

View File

@ -345,7 +345,7 @@ static char *gui_get_resource_url( NSString *name, NSString *type )
return strdup( [[[NSURL fileURLWithPath: path] absoluteString] UTF8String] ); 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 ); NSArray *paths = NSSearchPathForDirectoriesInDomains( NSApplicationSupportDirectory, NSUserDomainMask, YES );
NSCAssert( [paths count] >= 1, @"Where is the application support directory?" ); NSCAssert( [paths count] >= 1, @"Where is the application support directory?" );
@ -367,7 +367,7 @@ static NSString *cocoa_get_preferences_path()
return netsurfPath; 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"]; NSString *prefPath = [cocoa_get_preferences_path() stringByAppendingPathComponent: @"options"];
return [prefPath UTF8String]; return [prefPath UTF8String];

View File

@ -22,7 +22,6 @@
#import <Cocoa/Cocoa.h> #import <Cocoa/Cocoa.h>
#define UNIMPL() NSLog( @"Function '%s' unimplemented", __func__ )
char *url_to_path(const char *url) 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) char *path_to_url(const char *path)
{ {
UNIMPL(); return strdup( [[[NSURL fileURLWithPath: [NSString stringWithUTF8String: path]]
return NULL; absoluteString] UTF8String] );
} }

View File

@ -32,18 +32,6 @@ void warn_user(const char *warning, const char *detail)
NSRunAlertPanel( @"Warning", @"Warning %s: %s", @"OK", nil, nil, warning, 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) void PDF_Password(char **owner_pass, char **user_pass, char *path)
{ {
UNIMPL(); UNIMPL();