Useless method and parameter removed

This commit is contained in:
Andrey Breslav
2013-10-09 19:15:56 +04:00
parent 94ef5cb19b
commit a47d187c7a
@@ -267,18 +267,11 @@ public class KotlinToJVMBytecodeCompiler {
} }
} }
@Nullable
public static GenerationState analyzeAndGenerate(JetCoreEnvironment environment) {
return analyzeAndGenerate(environment,
environment.getConfiguration().getList(JVMConfigurationKeys.SCRIPT_PARAMETERS));
}
@Nullable @Nullable
public static GenerationState analyzeAndGenerate( public static GenerationState analyzeAndGenerate(
JetCoreEnvironment environment, JetCoreEnvironment environment
List<AnalyzerScriptParameter> scriptParameters
) { ) {
AnalyzeExhaust exhaust = analyze(environment, scriptParameters); AnalyzeExhaust exhaust = analyze(environment);
if (exhaust == null) { if (exhaust == null) {
return null; return null;
@@ -290,10 +283,7 @@ public class KotlinToJVMBytecodeCompiler {
} }
@Nullable @Nullable
private static AnalyzeExhaust analyze( private static AnalyzeExhaust analyze(final JetCoreEnvironment environment) {
final JetCoreEnvironment environment,
final List<AnalyzerScriptParameter> scriptParameters
) {
AnalyzerWithCompilerReport analyzerWithCompilerReport = new AnalyzerWithCompilerReport( AnalyzerWithCompilerReport analyzerWithCompilerReport = new AnalyzerWithCompilerReport(
environment.getConfiguration().get(CLIConfigurationKeys.MESSAGE_COLLECTOR_KEY)); environment.getConfiguration().get(CLIConfigurationKeys.MESSAGE_COLLECTOR_KEY));
analyzerWithCompilerReport.analyzeAndReport( analyzerWithCompilerReport.analyzeAndReport(
@@ -306,7 +296,7 @@ public class KotlinToJVMBytecodeCompiler {
environment.getProject(), environment.getProject(),
environment.getSourceFiles(), environment.getSourceFiles(),
sharedTrace, sharedTrace,
scriptParameters, environment.getConfiguration().getList(JVMConfigurationKeys.SCRIPT_PARAMETERS),
Predicates.<PsiFile>alwaysTrue(), Predicates.<PsiFile>alwaysTrue(),
false false
); );