| Index: lib/src/utils.dart
|
| diff --git a/lib/src/utils.dart b/lib/src/utils.dart
|
| index 5ff9558daaa2537eec8d5371643269dee8575898..df6b054dc8d00002a3bf81876616c74e3c3a061c 100644
|
| --- a/lib/src/utils.dart
|
| +++ b/lib/src/utils.dart
|
| @@ -30,7 +30,6 @@ import 'package:analyzer/src/task/dart.dart' show ParseDartTask;
|
| import 'package:analyzer/src/generated/resolver.dart' show TypeProvider;
|
| import 'package:analyzer/src/generated/source.dart' show LineInfo, Source;
|
| import 'package:analyzer/analyzer.dart' show parseDirectives;
|
| -import 'package:crypto/crypto.dart' show CryptoUtils, MD5;
|
| import 'package:source_span/source_span.dart';
|
|
|
| import 'codegen/js_names.dart' show invalidVariableName;
|
| @@ -300,18 +299,6 @@ SourceLocation locationForOffset(LineInfo lineInfo, Uri uri, int offset) {
|
| sourceUrl: uri, line: loc.lineNumber - 1, column: loc.columnNumber - 1);
|
| }
|
|
|
| -/// Computes a hash for the given contents.
|
| -String computeHash(String contents) {
|
| - if (contents == null || contents == '') return null;
|
| - return CryptoUtils.bytesToHex((new MD5()..add(contents.codeUnits)).close());
|
| -}
|
| -
|
| -/// Computes a hash for the given file path (reads the contents in binary form).
|
| -String computeHashFromFile(String filepath) {
|
| - var bytes = new File(filepath).readAsBytesSync();
|
| - return CryptoUtils.bytesToHex((new MD5()..add(bytes)).close());
|
| -}
|
| -
|
| String resourceOutputPath(Uri resourceUri, Uri entryUri, String runtimeDir) {
|
| if (resourceUri.scheme == 'package') return resourceUri.path;
|
|
|
|
|