diff options
Diffstat (limited to 'cocoa')
-rw-r--r-- | cocoa/BookmarksController.m | 3 | ||||
-rw-r--r-- | cocoa/utils.m | 10 |
2 files changed, 2 insertions, 11 deletions
diff --git a/cocoa/BookmarksController.m b/cocoa/BookmarksController.m index a2c5a45c3..7c1d80406 100644 --- a/cocoa/BookmarksController.m +++ b/cocoa/BookmarksController.m @@ -26,7 +26,6 @@ #import "desktop/browser_private.h" #import "desktop/hotlist_old.h" #import "desktop/tree.h" -#import "desktop/tree_url_node.h" #import "utils/messages.h" @interface BookmarksController () @@ -85,6 +84,7 @@ static const char *cocoa_hotlist_path( void ) - (void) menuNeedsUpdate: (NSMenu *)menu { +#if 0 for (NSMenuItem *item in [menu itemArray]) { if ([item hasSubmenu]) NSMapRemove( nodeForMenu, [item submenu] ); [menu removeItem: item]; @@ -125,6 +125,7 @@ static const char *cocoa_hotlist_path( void ) [item setAction: @selector( openBookmarkURL: )]; } } +#endif } - (IBAction) openBookmarkURL: (id) sender; diff --git a/cocoa/utils.m b/cocoa/utils.m index 0e10b9b6b..cd9313d34 100644 --- a/cocoa/utils.m +++ b/cocoa/utils.m @@ -19,7 +19,6 @@ #import <Cocoa/Cocoa.h> #import "utils/utils.h" -#import "desktop/tree_url_node.h" #define UNIMPL() NSLog( @"Function '%s' unimplemented", __func__ ) @@ -55,12 +54,3 @@ bool path_add_part(char *path, int length, const char *newpart) return true; } - -void tree_icon_name_from_content_type(char *buffer, content_type type) -{ - switch (type) { - default: - strcpy( buffer, "content.png" ); - break; - } -}
\ No newline at end of file |