Index: lib/src/util/dart.dart |
diff --git a/lib/src/util/dart.dart b/lib/src/util/dart.dart |
index 76f10b51fa15fb9240e172fbfdedb7fd3a907563..5cf02e538f3fc43bac40be3f9707dd6b77c2aab3 100644 |
--- a/lib/src/util/dart.dart |
+++ b/lib/src/util/dart.dart |
@@ -71,13 +71,3 @@ void _isolateBuffer(message) { |
}); |
}); |
} |
- |
-/// Parse all the annotations at the beginning of a Dart file. |
-/// |
-/// This will parse annotations until the first non-annotation production is |
-/// reached. |
-List<Annotation> parseAnnotations(String path) { |
- var contents = new File(path).readAsStringSync(); |
- var directives = parseDirectives(contents, name: path).directives; |
- return directives.isEmpty ? [] : directives.first.metadata; |
-} |