8196127: Dead code in VersionProps.java.template
authormchung
Thu, 25 Jan 2018 13:39:28 -0800
changeset 48670 ea6706103cef
parent 48669 51d97ee431ff
child 48671 a47ee8b3d308
8196127: Dead code in VersionProps.java.template Reviewed-by: lancea, psandoz
src/java.base/share/classes/java/lang/VersionProps.java.template
--- a/src/java.base/share/classes/java/lang/VersionProps.java.template	Thu Jan 25 11:56:32 2018 +0000
+++ b/src/java.base/share/classes/java/lang/VersionProps.java.template	Thu Jan 25 13:39:28 2018 -0800
@@ -166,15 +166,8 @@
      * Print version info.
      */
     private static void print(boolean err, boolean newln) {
-        boolean isHeadless = false;
         PrintStream ps = err ? System.err : System.out;
 
-        /* Report that we're running headless if the property is true */
-        String headless = System.getProperty("java.awt.headless");
-        if ( (headless != null) && (headless.equalsIgnoreCase("true")) ) {
-            isHeadless = true;
-        }
-
         /* First line: platform version. */
         if (err) {
             ps.println(launcher_name + " version \"" + java_version + "\""