Useless method and parameter removed
This commit is contained in:
+4
-14
@@ -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
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user