summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/nsimage.m14
-rw-r--r--src/nsmenu.m5
-rw-r--r--src/nsterm.m25
3 files changed, 0 insertions, 44 deletions
diff --git a/src/nsimage.m b/src/nsimage.m
index 51367915e1b..cc8abf76094 100644
--- a/src/nsimage.m
+++ b/src/nsimage.m
@@ -179,13 +179,6 @@ ns_set_alpha (void *img, int x, int y, unsigned char a)
return nil;
}
- /* The next two lines cause the DPI of the image to be ignored.
- This seems to be the behavior users expect. */
-#ifdef NS_IMPL_COCOA
-#if MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_6
- [image setScalesWhenResized: YES];
-#endif
-#endif
[image setSize: NSMakeSize([imgRep pixelsWide], [imgRep pixelsHigh])];
[image setName: [NSString stringWithUTF8String: SSDATA (file)]];
@@ -355,13 +348,6 @@ ns_set_alpha (void *img, int x, int y, unsigned char a)
if ([bmr numberOfPlanes] >= 3)
[bmr getBitmapDataPlanes: pixmapData];
- /* The next two lines cause the DPI of the image to be ignored.
- This seems to be the behavior users expect. */
-#ifdef NS_IMPL_COCOA
-#if MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_6
- [self setScalesWhenResized: YES];
-#endif
-#endif
[self setSize: NSMakeSize([bmr pixelsWide], [bmr pixelsHigh])];
break;
diff --git a/src/nsmenu.m b/src/nsmenu.m
index 5c6442ad0e8..59ea3855ed1 100644
--- a/src/nsmenu.m
+++ b/src/nsmenu.m
@@ -1519,11 +1519,6 @@ ns_popup_dialog (struct frame *f, Lisp_Object header, Lisp_Object contents)
area.size.width = ICONSIZE;
area.size.height= ICONSIZE;
img = [[NSImage imageNamed: @"NSApplicationIcon"] copy];
-#ifdef NS_IMPL_COCOA
-#if MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_6
- [img setScalesWhenResized: YES];
-#endif
-#endif
[img setSize: NSMakeSize (ICONSIZE, ICONSIZE)];
imgView = [[NSImageView alloc] initWithFrame: area];
[imgView setImage: img];
diff --git a/src/nsterm.m b/src/nsterm.m
index f985786e198..05435697cf3 100644
--- a/src/nsterm.m
+++ b/src/nsterm.m
@@ -5936,31 +5936,6 @@ not_in_argv (NSString *arg)
}
-#ifdef NS_IMPL_COCOA
-/* Needed to pick up Ctrl-tab and possibly other events that Mac OS X
- decided not to send key-down for.
- See http://osdir.com/ml/editors.vim.mac/2007-10/msg00141.html
- This only applies on Tiger and earlier.
- If it matches one of these, send it on to keyDown. */
--(void)keyUp: (NSEvent *)theEvent
-{
- int flags = [theEvent modifierFlags];
- int code = [theEvent keyCode];
-
- NSTRACE ("[EmacsView keyUp:]");
-
- if (floor (NSAppKitVersionNumber) <= 824 /*NSAppKitVersionNumber10_4*/ &&
- code == 0x30 && (flags & NSEventModifierFlagControl) && !(flags & NSEventModifierFlagCommand))
- {
- if (NS_KEYLOG)
- fprintf (stderr, "keyUp: passed test");
- ns_fake_keydown = YES;
- [self keyDown: theEvent];
- }
-}
-#endif
-
-
/* <NSTextInput> implementation (called through super interpretKeyEvents:]). */