diff options
author | Sven Gothel <sgothel@jausoft.com> | 2014-01-02 20:24:36 +0100 |
---|---|---|
committer | Sven Gothel <sgothel@jausoft.com> | 2014-01-02 20:24:36 +0100 |
commit | 09db30c4a0d9c0f29c47af76238b2abc275301c0 (patch) | |
tree | bb6bb995e880bcc20ede9ded73fe73d12a2dff6b /src/newt/native/NewtMacWindow.m | |
parent | 6569b352a982654a17b9b04b2bc3b3dca8d7448d (diff) |
NewtMacWindow: NSView: Remove unused 'myCursor' field
Diffstat (limited to 'src/newt/native/NewtMacWindow.m')
-rw-r--r-- | src/newt/native/NewtMacWindow.m | 16 |
1 files changed, 0 insertions, 16 deletions
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; |