summaryrefslogtreecommitdiffstats
path: root/src/newt/native
diff options
context:
space:
mode:
Diffstat (limited to 'src/newt/native')
-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;