Skip to content

Commit c2af27b

Browse files
author
Vladimir Kempik
committed
8257148: Remove obsolete code in AWTView.m
Reviewed-by: serb
1 parent 87f37aa commit c2af27b

File tree

3 files changed

+1
-95
lines changed

3 files changed

+1
-95
lines changed

src/java.desktop/macosx/native/libawt_lwawt/awt/AWTView.m

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
#import "JavaTextAccessibility.h"
3232
#import "JavaAccessibilityUtilities.h"
3333
#import "GeomUtilities.h"
34-
#import "OSVersion.h"
3534
#import "ThreadUtilities.h"
3635

3736
#import <Carbon/Carbon.h>
@@ -53,10 +52,7 @@ -(NSMutableString *) parseString : (id) complexString;
5352
//#define EXTRA_DEBUG
5453

5554
static BOOL shouldUsePressAndHold() {
56-
static int shouldUsePressAndHold = -1;
57-
if (shouldUsePressAndHold != -1) return shouldUsePressAndHold;
58-
shouldUsePressAndHold = !isSnowLeopardOrLower();
59-
return shouldUsePressAndHold;
55+
return YES;
6056
}
6157

6258
@implementation AWTView

src/java.desktop/macosx/native/libawt_lwawt/awt/OSVersion.h

Lines changed: 0 additions & 29 deletions
This file was deleted.

src/java.desktop/macosx/native/libawt_lwawt/awt/OSVersion.m

Lines changed: 0 additions & 61 deletions
This file was deleted.

0 commit comments

Comments
 (0)