Removed unused KotlinToJVMBytecodeCompiler.compileText method and test for it.

This commit is contained in:
Evgeny Gerashchenko
2012-07-11 18:24:23 +04:00
parent 4609360bcc
commit abfc54d5ab
2 changed files with 0 additions and 87 deletions
@@ -232,20 +232,6 @@ public class KotlinToJVMBytecodeCompiler {
return compileBunchOfSources(configuration, jar, outputDir, includeRuntime);
}
@Nullable
public static ClassLoader compileText(
K2JVMCompileEnvironmentConfiguration configuration,
String code) {
configuration.getEnvironment()
.addSources(new LightVirtualFile("script" + LocalTimeCounter.currentTime() + ".kt", JetLanguage.INSTANCE, code));
GenerationState generationState = analyzeAndGenerate(configuration);
if (generationState == null) {
return null;
}
return new GeneratedClassLoader(generationState.getFactory());
}
@Nullable
public static GenerationState analyzeAndGenerate(K2JVMCompileEnvironmentConfiguration configuration) {
return analyzeAndGenerate(configuration, configuration.isStubs());