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

Unified Diff: lib/src/md5.dart

Issue 1819293003: Remove deprecated APIs. (Closed) Base URL: git@github.com:dart-lang/crypto.git@master
Patch Set: Created 4 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
« no previous file with comments | « lib/src/hmac.dart ('k') | lib/src/sha1.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/md5.dart
diff --git a/lib/src/md5.dart b/lib/src/md5.dart
index 1374df75b13575abe8ede11f96d789ebc29b0199..69e3c320d46ebd8ff284b3b1387a70c415b8234c 100644
--- a/lib/src/md5.dart
+++ b/lib/src/md5.dart
@@ -18,7 +18,7 @@ import 'utils.dart';
///
/// **Warning**: MD5 has known collisions and should only be used when required
/// for backwards compatibility.
-final md5 = new MD5();
+final md5 = new MD5._();
/// An implementation of the [MD5][rfc] hash function.
///
@@ -32,13 +32,7 @@ final md5 = new MD5();
class MD5 extends Hash {
final int blockSize = 16 * bytesPerWord;
- /// This constructor is deprecated.
- ///
- /// Use [md5] instead.
- @Deprecated("Will be removed in crypto 1.0.0.")
- MD5();
-
- MD5 newInstance() => new MD5();
+ MD5._();
ByteConversionSink startChunkedConversion(Sink<Digest> sink) =>
new ByteConversionSink.from(new _MD5Sink(sink));
« no previous file with comments | « lib/src/hmac.dart ('k') | lib/src/sha1.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698