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

Unified Diff: utils/apidoc/scripts/list_files.dart

Issue 12210039: Delete unused file. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/apidoc/scripts/list_files.dart
diff --git a/utils/apidoc/scripts/list_files.dart b/utils/apidoc/scripts/list_files.dart
deleted file mode 100644
index 1a518e29dab4ded55121f591562c9919d2d23f34..0000000000000000000000000000000000000000
--- a/utils/apidoc/scripts/list_files.dart
+++ /dev/null
@@ -1,42 +0,0 @@
-// Copyright (c) 2012, 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.
-
-/**
- * Traverses apidoc and dartdoc and lists all possible input files that are
- * used when building API documentation. Used by gyp to determine when apidocs
- * need to be regenerated (see `apidoc.gyp`).
- */
-library list_files;
-
-import 'dart:io';
-
-const allowedExtensions = const [
- '.css', '.dart', '.ico', '.js', '.json', '.png', '.sh', '.txt'
-];
-
-void main() {
- final scriptDir = new File(new Options().script).directorySync().path;
- final dartDir = '$scriptDir/../../../';
- listFiles('$dartDir/utils/apidoc');
- listFiles('$dartDir/sdk/lib/_internal/dartdoc');
-}
-
-void listFiles(String dirPath) {
- final dir = new Directory(dirPath);
-
- dir.onFile = (path) {
- if (allowedExtensions.indexOf(extension(path)) != -1) {
- print(path);
- }
- };
-
- dir.list(recursive: true);
-}
-
-String extension(String path) {
- int lastDot = path.lastIndexOf('.');
- if (lastDot == -1) return '';
-
- return path.substring(lastDot);
-}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698