From 09db30c4a0d9c0f29c47af76238b2abc275301c0 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Thu, 2 Jan 2014 20:24:36 +0100 Subject: NewtMacWindow: NSView: Remove unused 'myCursor' field --- src/newt/native/NewtMacWindow.h | 2 -- src/newt/native/NewtMacWindow.m | 16 ---------------- 2 files changed, 18 deletions(-) (limited to 'src') diff --git a/src/newt/native/NewtMacWindow.h b/src/newt/native/NewtMacWindow.h index 1f907f30e..ba2e242cf 100644 --- a/src/newt/native/NewtMacWindow.h +++ b/src/newt/native/NewtMacWindow.h @@ -63,7 +63,6 @@ volatile NSTrackingRectTag ptrTrackingTag; NSRect ptrRect; - NSCursor * myCursor; } - (id)initWithFrame:(NSRect)frameRect; @@ -86,7 +85,6 @@ - (void) rightMouseDown: (NSEvent*) theEvent; - (void) resetCursorRects; -- (NSCursor *) cursor; - (void) setDestroyNotifySent: (BOOL) v; - (BOOL) getDestroyNotifySent; diff --git a/src/newt/native/NewtMacWindow.m b/src/newt/native/NewtMacWindow.m index a7bab9b9d..9f534e319 100644 --- a/src/newt/native/NewtMacWindow.m +++ b/src/newt/native/NewtMacWindow.m @@ -123,14 +123,6 @@ static jmethodID windowRepaintID = NULL; ptrTrackingTag = 0; - /** - NSCursor crs = [NSCursor arrowCursor]; - NSImage crsImg = [crs image]; - NSPoint crsHot = [crs hotSpot]; - myCursor = [[NSCursor alloc] initWithImage: crsImg hotSpot:crsHot]; - */ - myCursor = NULL; - DBG_PRINT("NewtView::create: %p (refcnt %d)\n", res, (int)[res retainCount]); return res; } @@ -153,7 +145,6 @@ static jmethodID windowRepaintID = NULL; NSLog(@"NewtView::dealloc: softLock still hold @ dealloc!\n"); } if(0 != ptrTrackingTag) { - // [self removeCursorRect: ptrRect cursor: myCursor]; [self removeTrackingRect: ptrTrackingTag]; ptrTrackingTag = 0; } @@ -204,20 +195,13 @@ static jmethodID windowRepaintID = NULL; [super resetCursorRects]; if(0 != ptrTrackingTag) { - // [self removeCursorRect: ptrRect cursor: myCursor]; [self removeTrackingRect: ptrTrackingTag]; ptrTrackingTag = 0; } ptrRect = [self bounds]; - // [self addCursorRect: ptrRect cursor: myCursor]; ptrTrackingTag = [self addTrackingRect: ptrRect owner: self userData: nil assumeInside: NO]; } -- (NSCursor *) cursor -{ - return myCursor; -} - - (void) setDestroyNotifySent: (BOOL) v { destroyNotifySent = v; -- cgit v1.2.3