aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2014-01-02 20:24:36 +0100
committerSven Gothel <[email protected]>2014-01-02 20:24:36 +0100
commit09db30c4a0d9c0f29c47af76238b2abc275301c0 (patch)
treebb6bb995e880bcc20ede9ded73fe73d12a2dff6b /src
parent6569b352a982654a17b9b04b2bc3b3dca8d7448d (diff)
NewtMacWindow: NSView: Remove unused 'myCursor' field
Diffstat (limited to 'src')
-rw-r--r--src/newt/native/NewtMacWindow.h2
-rw-r--r--src/newt/native/NewtMacWindow.m16
2 files changed, 0 insertions, 18 deletions
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;