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

Unified Diff: lib/src/crypto_utils.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/base64/encoder_sink.dart ('k') | lib/src/hash.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/crypto_utils.dart
diff --git a/lib/src/crypto_utils.dart b/lib/src/crypto_utils.dart
deleted file mode 100644
index 4af507cdaff66e70c328a10a60760adfa70f1f4a..0000000000000000000000000000000000000000
--- a/lib/src/crypto_utils.dart
+++ /dev/null
@@ -1,33 +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.
-
-import 'base64.dart';
-
-/// This class is deprecated.
-@Deprecated("Will be removed in crypto 1.0.0.")
-abstract class CryptoUtils {
- /// This is deprecated.
- ///
- /// Use `hex` from `package:convert` instead.
- static String bytesToHex(List<int> bytes) {
- var result = new StringBuffer();
- for (var part in bytes) {
- result.write('${part < 16 ? '0' : ''}${part.toRadixString(16)}');
- }
- return result.toString();
- }
-
- /// This is deprecated.
- ///
- /// Use `BASE64` from `dart:convert` instead.
- static String bytesToBase64(List<int> bytes,
- {bool urlSafe: false, bool addLineSeparator: false}) =>
- BASE64.encode(bytes,
- urlSafe: urlSafe, addLineSeparator: addLineSeparator);
-
- /// This is deprecated.
- ///
- /// Use `BASE64` from `dart:convert` instead.
- static List<int> base64StringToBytes(String input) => BASE64.decode(input);
-}
« no previous file with comments | « lib/src/base64/encoder_sink.dart ('k') | lib/src/hash.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698