Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(140)

Unified Diff: editor/tools/plugins/com.google.dart.command.analyze/src/com/google/dart/command/analyze/AnalyzerImpl.java

Issue 16231008: Remove unused (and little used) cli flags from dartanalyzer. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | editor/tools/plugins/com.google.dart.command.analyze/src/com/google/dart/command/analyze/AnalyzerMain.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: editor/tools/plugins/com.google.dart.command.analyze/src/com/google/dart/command/analyze/AnalyzerImpl.java
===================================================================
--- editor/tools/plugins/com.google.dart.command.analyze/src/com/google/dart/command/analyze/AnalyzerImpl.java (revision 23440)
+++ editor/tools/plugins/com.google.dart.command.analyze/src/com/google/dart/command/analyze/AnalyzerImpl.java (working copy)
@@ -32,7 +32,6 @@
import com.google.dart.engine.source.UriKind;
import java.io.File;
-import java.io.FileOutputStream;
import java.io.IOException;
import java.util.Arrays;
import java.util.HashSet;
@@ -117,33 +116,6 @@
return getMaxErrorSeverity(errors);
}
- /**
- * Create the serialized element file for the SDK.
- *
- * @return true on success, false if an error occurred
- */
- public boolean createSdkIndex() {
- @SuppressWarnings("unused")
- DartSdk sdk = new DirectoryBasedDartSdk(options.getDartSdkPath());
-
- try {
- // TODO(devoncarew): call analysis engine methods to create an index file
-
- FileOutputStream out = new FileOutputStream(options.getSdkIndexLocation());
- out.write(0);
- out.write(0);
- out.write(0);
- out.write(0);
- out.close();
-
- return true;
- } catch (IOException ioe) {
- ioe.printStackTrace();
-
- return false;
- }
- }
-
Set<Source> getAllSources(LibraryElement library) {
Set<CompilationUnitElement> units = new HashSet<CompilationUnitElement>();
Set<LibraryElement> libraries = new HashSet<LibraryElement>();
« no previous file with comments | « no previous file | editor/tools/plugins/com.google.dart.command.analyze/src/com/google/dart/command/analyze/AnalyzerMain.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698