Skip to content

Commit

Permalink
8272878: JEP 381 cleanup: Remove unused Solaris code in sun.font.True…
Browse files Browse the repository at this point in the history
…TypeGlyphMapper

Reviewed-by: prr, jdv
  • Loading branch information
gredler authored and jayathirthrao committed Sep 6, 2021
1 parent b4e5b28 commit 70ed6c5
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions src/java.desktop/share/classes/sun/font/TrueTypeGlyphMapper.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,6 @@

public class TrueTypeGlyphMapper extends CharToGlyphMapper {

static final char REVERSE_SOLIDUS = 0x005c; // the backslash char.
static final char JA_YEN = 0x00a5;

/* if running on Solaris and default Locale is ja_JP then
* we map need to remap reverse solidus (backslash) to Yen as
* apparently expected there.
*/
static final boolean isJAlocale = Locale.JAPAN.equals(Locale.getDefault());

TrueTypeFont font;
CMap cmap;
int numGlyphs;
Expand Down Expand Up @@ -125,14 +116,6 @@ private void handleBadCMAP() {
cmap = CMap.theNullCmap;
}

private char remapJAChar(char unicode) {
return (unicode == REVERSE_SOLIDUS) ? JA_YEN : unicode;
}

private int remapJAIntChar(int unicode) {
return (unicode == REVERSE_SOLIDUS) ? JA_YEN : unicode;
}

public int charToGlyph(char unicode) {
int glyph = getGlyphFromCMAP(unicode);
return glyph;
Expand Down

1 comment on commit 70ed6c5

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.