| Index: compiler/java/com/google/dart/compiler/DefaultCompilerConfiguration.java
|
| diff --git a/compiler/java/com/google/dart/compiler/DefaultCompilerConfiguration.java b/compiler/java/com/google/dart/compiler/DefaultCompilerConfiguration.java
|
| index b4723a4a9b82057db82f911a4c0c1049be062407..7911b087f30d19e55b3be24667fad314b442310f 100644
|
| --- a/compiler/java/com/google/dart/compiler/DefaultCompilerConfiguration.java
|
| +++ b/compiler/java/com/google/dart/compiler/DefaultCompilerConfiguration.java
|
| @@ -5,7 +5,6 @@
|
| package com.google.dart.compiler;
|
|
|
| import com.google.dart.compiler.CommandLineOptions.CompilerOptions;
|
| -import com.google.dart.compiler.backend.isolate.DartIsolateStubGenerator;
|
| import com.google.dart.compiler.backend.js.JavascriptBackend;
|
| import com.google.dart.compiler.metrics.CompilerMetrics;
|
| import com.google.dart.compiler.resolver.CompileTimeConstantAnalyzer;
|
| @@ -41,23 +40,13 @@ public class DefaultCompilerConfiguration implements CompilerConfiguration {
|
| this(new JavascriptBackend());
|
| }
|
|
|
| - private static Backend selectBackend(CompilerOptions compilerOptions)
|
| - throws FileNotFoundException {
|
| - if (!compilerOptions.getIsolateStubClasses().isEmpty()) {
|
| - return new DartIsolateStubGenerator(compilerOptions.getIsolateStubClasses(),
|
| - compilerOptions.getIsolateStubOutputFile());
|
| - } else {
|
| - return new JavascriptBackend();
|
| - }
|
| - }
|
| -
|
| /**
|
| * A new instance with the specified {@link CompilerOptions}
|
| * @throws FileNotFoundException
|
| */
|
| public DefaultCompilerConfiguration(CompilerOptions compilerOptions)
|
| throws FileNotFoundException {
|
| - this (selectBackend(compilerOptions), compilerOptions);
|
| + this (new JavascriptBackend(), compilerOptions);
|
| }
|
|
|
| /**
|
| @@ -94,7 +83,7 @@ public class DefaultCompilerConfiguration implements CompilerConfiguration {
|
| */
|
| public DefaultCompilerConfiguration(CompilerOptions compilerOptions,
|
| SystemLibraryManager libraryManager) throws FileNotFoundException {
|
| - this(compilerOptions, libraryManager, selectBackend(compilerOptions));
|
| + this(compilerOptions, libraryManager, new JavascriptBackend());
|
| }
|
|
|
| /**
|
| @@ -179,11 +168,6 @@ public class DefaultCompilerConfiguration implements CompilerConfiguration {
|
| }
|
|
|
| @Override
|
| - public boolean shouldWarnOnNoSuchType() {
|
| - return false;
|
| - }
|
| -
|
| - @Override
|
| public LibrarySource getSystemLibraryFor(String importSpec) {
|
| URI systemUri;
|
| try {
|
|
|