changeset 49011:ea6706103cef

8196127: Dead code in VersionProps.java.template Reviewed-by: lancea, psandoz
author mchung
date Thu, 25 Jan 2018 13:39:28 -0800
parents 51d97ee431ff
children a47ee8b3d308
files src/java.base/share/classes/java/lang/VersionProps.java.template
diffstat 1 files changed, 0 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- 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 + "\""