From c263a77d3613dcc0805306d92d0b34bcbc55aecc Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Wed, 24 Aug 2011 13:39:28 +0000 Subject: [PATCH] Don't need to set current_redraw_browser any more. svn path=/trunk/netsurf/; revision=12657 --- cocoa/BrowserView.m | 3 --- 1 file changed, 3 deletions(-) diff --git a/cocoa/BrowserView.m b/cocoa/BrowserView.m index 7e4e5d649..a0f7d67f5 100644 --- a/cocoa/BrowserView.m +++ b/cocoa/BrowserView.m @@ -146,8 +146,6 @@ static inline NSRect cocoa_get_caret_rect( BrowserView *view ) { NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; - current_redraw_browser = browser; - struct redraw_context ctx = { .interactive = true, .plot = &cocoa_plotters @@ -167,7 +165,6 @@ static inline NSRect cocoa_get_caret_rect( BrowserView *view ) browser_window_redraw(browser, 0, 0, &clip, &ctx); } - current_redraw_browser = NULL; NSRect caretRect = cocoa_get_caret_rect( self ); if (hasCaret && caretVisible && [self needsToDrawRect: caretRect]) {