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

Unified Diff: lib/dartdoc/utils.dart

Issue 9722012: Get rid of bash for dartdoc and do the whole thing in dart. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 9 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
Index: lib/dartdoc/utils.dart
diff --git a/lib/dartdoc/utils.dart b/lib/dartdoc/utils.dart
index 576f3c55b31bc32fa1eadf91df0784eb639e7f64..b8f7fbda5eddb256e9889166217c1f0d80f55652 100644
--- a/lib/dartdoc/utils.dart
+++ b/lib/dartdoc/utils.dart
@@ -4,15 +4,6 @@
// Generic utility functions.
-/** Invokes [callback] and returns how long it took to execute in ms. */
-num time(callback()) {
- final watch = new Stopwatch();
- watch.start();
- callback();
- watch.stop();
- return watch.elapsedInMs();
-}
-
/** Turns [name] into something that's safe to use as a file name. */
String sanitize(String name) => name.replaceAll(':', '_').replaceAll('/', '_');
« lib/dartdoc/dartdoc.dart ('K') | « lib/dartdoc/dartdoc.dart ('k') | utils/apidoc/apidoc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698