summaryrefslogtreecommitdiff
path: root/cocoa/gui.m
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2014-11-21 11:48:43 +0000
committerVincent Sanders <vince@kyllikki.org>2014-11-21 11:48:43 +0000
commit3ff4846c1a7d1b85624f5c1ced2df8637b0bd1e3 (patch)
tree7ccaf71c89c158a9c1c7ce5bdceea6dcf4fc39ac /cocoa/gui.m
parent0f0c3b02d7b3aa4687376d9c4e92312d77aa42c2 (diff)
downloadnetsurf-3ff4846c1a7d1b85624f5c1ced2df8637b0bd1e3.tar.gz
netsurf-3ff4846c1a7d1b85624f5c1ced2df8637b0bd1e3.tar.bz2
Remove usage of browser private interfaces
The cocoa frontend was directly acessing browser internals instead of using the API. In the case of gui.m there was a check for the browser window not being root (browser->parent != NULL) . As gui windows can only ever be associated with the root brower window (i.e. its parent will always be NULL) this was completely redundant.
Diffstat (limited to 'cocoa/gui.m')
-rw-r--r--cocoa/gui.m4
1 files changed, 1 insertions, 3 deletions
diff --git a/cocoa/gui.m b/cocoa/gui.m
index 2bce0cd2b..162d831a4 100644
--- a/cocoa/gui.m
+++ b/cocoa/gui.m
@@ -33,7 +33,7 @@
#import "desktop/mouse.h"
#import "desktop/gui_window.h"
#import "desktop/gui_misc.h"
-#import "desktop/browser_private.h"
+#import "desktop/browser.h"
#import "desktop/textinput.h"
#import "image/ico.h"
#import "content/fetchers/resource.h"
@@ -78,8 +78,6 @@ gui_window_create(struct browser_window *bw,
static void gui_window_destroy(struct gui_window *g)
{
BrowserViewController *vc = (BrowserViewController *)g;
-
- if ([vc browser]->parent != NULL) [[vc view] removeFromSuperview];
[vc release];
}