[OpenJDK 2D-Dev]  Review Request: 8224171 The cleanup multi-font related code in the XFontPeer
Sergey.Bylokhov at oracle.com
Sat May 18 22:10:31 UTC 2019
Please review the fix for JDK 13.
This change is the part of my effort to clean up the native initialization code in awt/2d. Initially, I have dropped the native code inside initIds() which was unused(JDK-8223766). Now I tried to check is the code inside initIDs() is used for some meaningful purpose.
I found that XFontPeer.initIds() uses XFontPeer.xfsname field which is always null, so in this fix, I have dropped the field itself, the initIds(), the methods which depend on this field, and methods which calls methods which depends on this field, etc. Next step will be clean up the native code for the Fonts itself, there is some unused code as well.
Note that this field was unused since 2009
Best regards, Sergey.
More information about the 2d-dev