remove deprecated methods
Project: http://git-wip-us.apache.org/repos/asf/groovy/repo Commit: http://git-wip-us.apache.org/repos/asf/groovy/commit/d182c979 Tree: http://git-wip-us.apache.org/repos/asf/groovy/tree/d182c979 Diff: http://git-wip-us.apache.org/repos/asf/groovy/diff/d182c979 Branch: refs/heads/GROOVY_2_6_X Commit: d182c97946a23b7af4f94e707bcdbf66a9e25c8d Parents: 670e901 Author: Paul King <pa...@asert.com.au> Authored: Fri May 18 12:22:29 2018 +1000 Committer: Paul King <pa...@asert.com.au> Committed: Fri May 18 12:24:14 2018 +1000 ---------------------------------------------------------------------- .../groovy/tools/FileSystemCompiler.java | 38 -------------------- 1 file changed, 38 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/groovy/blob/d182c979/src/main/java/org/codehaus/groovy/tools/FileSystemCompiler.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/codehaus/groovy/tools/FileSystemCompiler.java b/src/main/java/org/codehaus/groovy/tools/FileSystemCompiler.java index cd00053..e9fc8b5 100644 --- a/src/main/java/org/codehaus/groovy/tools/FileSystemCompiler.java +++ b/src/main/java/org/codehaus/groovy/tools/FileSystemCompiler.java @@ -18,11 +18,8 @@ */ package org.codehaus.groovy.tools; -import groovy.lang.DeprecationException; import groovy.lang.GroovyResourceLoader; import groovy.lang.GroovySystem; -import org.apache.commons.cli.HelpFormatter; -import org.apache.commons.cli.Options; import org.codehaus.groovy.control.CompilationUnit; import org.codehaus.groovy.control.CompilerConfiguration; import org.codehaus.groovy.control.ConfigurationException; @@ -428,41 +425,6 @@ public class FileSystemCompiler { } } - /** @deprecated use {@link #displayHelp(PrintWriter)} instead */ - @Deprecated - public static void displayHelp(final Options options) { - final HelpFormatter formatter = new HelpFormatter(); - formatter.printHelp(80, "groovyc [options] <source-files>", "options:", options, ""); - } - - // some methods to avoid binary incompatibility - don't gain us a lot but gives the user - // something slightly less cryptic than a NoSuchMethodError or an IncompatibleClassChangeError - @Deprecated - public static CompilerConfiguration generateCompilerConfigurationFromOptions(org.apache.commons.cli.CommandLine cli) throws IOException { - throw new DeprecationException("This method is not supported for Groovy 2.5+. Consider instead using the FileSystemCompiler.CompilationOptions class."); - } - - @Deprecated - public static String[] generateFileNamesFromOptions(org.apache.commons.cli.CommandLine cli) { - throw new DeprecationException("This method is not supported for Groovy 2.5+. Consider instead using the FileSystemCompiler.CompilationOptions class."); - } - - @Deprecated - public static Options createCompilationOptions() { - throw new DeprecationException("This method is not supported for Groovy 2.5+. Consider instead using the FileSystemCompiler.CompilationOptions class."); - } - - /** - * Creates a temporary directory in the default temporary directory (as specified by the system - * property <i>java.io.tmpdir</i>. - * - * @deprecated Use {@link DefaultGroovyStaticMethods#createTempDir(java.io.File, String, String)} instead. - */ - @Deprecated - public static File createTempDir() throws IOException { - return DefaultGroovyStaticMethods.createTempDir(null); - } - public static void deleteRecursive(File file) { if (!file.exists()) { return;