| Index: compiler/java/com/google/dart/compiler/ast/viz/ASTWriterFactory.java
|
| diff --git a/compiler/java/com/google/dart/compiler/ast/viz/ASTWriterFactory.java b/compiler/java/com/google/dart/compiler/ast/viz/ASTWriterFactory.java
|
| deleted file mode 100644
|
| index 7917f89f25bc5913ac70e0c3d013ece674d91309..0000000000000000000000000000000000000000
|
| --- a/compiler/java/com/google/dart/compiler/ast/viz/ASTWriterFactory.java
|
| +++ /dev/null
|
| @@ -1,24 +0,0 @@
|
| -// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
|
| -// for details. All rights reserved. Use of this source code is governed by a
|
| -// BSD-style license that can be found in the LICENSE file.
|
| -
|
| -package com.google.dart.compiler.ast.viz;
|
| -
|
| -import com.google.dart.compiler.CompilerConfiguration;
|
| -import com.google.dart.compiler.CommandLineOptions.CompilerOptions;
|
| -
|
| -public class ASTWriterFactory {
|
| - public static BaseASTWriter create(CompilerConfiguration config) {
|
| - String astFormat = config.getCompilerOptions().dumpAST();
|
| - CompilerOptions compilerOptions = config.getCompilerOptions();
|
| - String outDir = compilerOptions.getWorkDirectory().getAbsolutePath();
|
| - if ("console".equals(astFormat)) {
|
| - return new ConsoleWriter(outDir);
|
| - } else if ("text".equals(astFormat)) {
|
| - return new TextWriter(outDir);
|
| - } else if ("dot".equals(astFormat)) {
|
| - return new DotWriter(outDir);
|
| - }
|
| - return new NullWriter(outDir);
|
| - }
|
| -}
|
|
|