JRE-118 Emoji support
removed unused code
diff --git a/src/share/classes/sun/font/GlyphList.java b/src/share/classes/sun/font/GlyphList.java
index d2e63de..ad61f3d 100644
--- a/src/share/classes/sun/font/GlyphList.java
+++ b/src/share/classes/sun/font/GlyphList.java
@@ -26,8 +26,6 @@
package sun.font;
import java.awt.font.GlyphVector;
-import java.security.AccessController;
-import java.security.PrivilegedAction;
import sun.java2d.SurfaceData;
import sun.java2d.loops.FontInfo;
@@ -157,18 +155,8 @@
private static GlyphList reusableGL = new GlyphList();
private static boolean inUse;
- private static boolean colorGlyphsSupported;
private ColorGlyphSurfaceData glyphSurfaceData;
- static {
- AccessController.doPrivileged(new PrivilegedAction() {
- public Object run() {
- colorGlyphsSupported = System.getProperty("os.name", "").startsWith("Mac");
- return null;
- }
- });
- }
-
void ensureCapacity(int len) {
/* Note len must not be -ve! only setFromChars should be capable
* of passing down a -ve len, and this guards against it.
@@ -526,10 +514,6 @@
bounds[3] = (int)Math.floor(by1);
}
- public static boolean areColorGlyphsSupported() {
- return colorGlyphsSupported;
- }
-
public boolean isColorGlyph(int glyphIndex) {
int width = StrikeCache.unsafe.getChar(images[glyphIndex] + StrikeCache.widthOffset);
int rowBytes = StrikeCache.unsafe.getChar(images[glyphIndex] + StrikeCache.rowBytesOffset);