From 99b3c35e73a3f0b05b226e0ca1e572fb06c798c7 Mon Sep 17 00:00:00 2001 From: "Archie L. Cobbs" Date: Fri, 28 Mar 2025 22:17:07 -0600 Subject: [PATCH] Remove unused code. --- .../com/sun/tools/javac/main/JavaCompiler.java | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/src/jdk.compiler/share/classes/com/sun/tools/javac/main/JavaCompiler.java b/src/jdk.compiler/share/classes/com/sun/tools/javac/main/JavaCompiler.java index 05efcf7c041..4a0f3419f64 100644 --- a/src/jdk.compiler/share/classes/com/sun/tools/javac/main/JavaCompiler.java +++ b/src/jdk.compiler/share/classes/com/sun/tools/javac/main/JavaCompiler.java @@ -238,10 +238,6 @@ public class JavaCompiler { */ public Log log; - /** Whether or not the options lint category was initially disabled - */ - boolean optionsCheckingInitiallyDisabled; - /** Factory for creating diagnostic objects */ JCDiagnostic.Factory diagFactory; @@ -439,12 +435,6 @@ public class JavaCompiler { moduleFinder.moduleNameFromSourceReader = this::readModuleName; options = Options.instance(context); - // See if lint options checking was explicitly disabled by the - // user; this is distinct from the options check being - // enabled/disabled. - optionsCheckingInitiallyDisabled = - options.isSet(Option.XLINT_CUSTOM, "-options") || - options.isSet(Option.XLINT_CUSTOM, "none"); verbose = options.isSet(VERBOSE); sourceOutput = options.isSet(PRINTSOURCE); // used to be -s @@ -928,11 +918,6 @@ public class JavaCompiler { checkReusable(); hasBeenUsed = true; - // forcibly set the equivalent of -Xlint:-options, so that no further - // warnings about command line options are generated from this point on - options.put(XLINT_CUSTOM.primaryName + "-" + LintCategory.OPTIONS.option, "true"); - options.remove(XLINT_CUSTOM.primaryName + LintCategory.OPTIONS.option); - start_msec = now(); try {