mirror of
https://github.com/dart-lang/sdk
synced 2024-11-02 08:44:27 +00:00
Stop using package:intl, remove it from DEPS.
Change-Id: I7a6c036f7cd2c5ac64b0ab5a8b87bed1b9f34034 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/224660 Reviewed-by: Samuel Rawlins <srawlins@google.com> Reviewed-by: Brian Wilkerson <brianwilkerson@google.com> Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
This commit is contained in:
parent
8e407058db
commit
b0d7c56e84
7 changed files with 6 additions and 27 deletions
|
@ -11,7 +11,7 @@
|
|||
"constraint, update this by running tools/generate_package_config.dart."
|
||||
],
|
||||
"configVersion": 2,
|
||||
"generated": "2021-12-10T17:31:54.553345",
|
||||
"generated": "2021-12-16T12:51:36.232645",
|
||||
"generator": "tools/generate_package_config.dart",
|
||||
"packages": [
|
||||
{
|
||||
|
@ -371,12 +371,6 @@
|
|||
"packageUri": "lib/",
|
||||
"languageVersion": "2.12"
|
||||
},
|
||||
{
|
||||
"name": "intl",
|
||||
"rootUri": "../third_party/pkg/intl",
|
||||
"packageUri": "lib/",
|
||||
"languageVersion": "2.11"
|
||||
},
|
||||
{
|
||||
"name": "js",
|
||||
"rootUri": "../pkg/js",
|
||||
|
|
3
DEPS
3
DEPS
|
@ -120,7 +120,6 @@ vars = {
|
|||
"http_parser_rev": "202391286ddc13c4c3c284ac5b511f04697250ed",
|
||||
"http_rev": "f35d1e1467092f6a5edb2abf7071c4a99e8c737a",
|
||||
"icu_rev" : "81d656878ec611cb0b42d52c82e9dae93920d9ba",
|
||||
"intl_tag": "0.17.0-nullsafety",
|
||||
"jinja2_rev": "2222b31554f03e62600cd7e383376a7c187967a1",
|
||||
"json_rpc_2_rev": "7e00f893440a72de0637970325e4ea44bd1e8c8e",
|
||||
"linter_tag": "1.17.1",
|
||||
|
@ -365,8 +364,6 @@ deps = {
|
|||
"@" + Var("http_multi_server_rev"),
|
||||
Var("dart_root") + "/third_party/pkg/http_parser":
|
||||
Var("dart_git") + "http_parser.git" + "@" + Var("http_parser_rev"),
|
||||
Var("dart_root") + "/third_party/pkg/intl":
|
||||
Var("dart_git") + "intl.git" + "@" + Var("intl_tag"),
|
||||
Var("dart_root") + "/third_party/pkg/json_rpc_2":
|
||||
Var("dart_git") + "json_rpc_2.git" + "@" + Var("json_rpc_2_rev"),
|
||||
Var("dart_root") + "/third_party/pkg/linter":
|
||||
|
|
|
@ -10,7 +10,6 @@ import 'package:analyzer/file_system/file_system.dart';
|
|||
import 'package:analyzer/file_system/physical_file_system.dart';
|
||||
import 'package:analyzer_utilities/package_root.dart';
|
||||
import 'package:args/command_runner.dart';
|
||||
import 'package:intl/intl.dart';
|
||||
import 'package:path/path.dart' as path;
|
||||
|
||||
import 'perf/benchmarks_impl.dart';
|
||||
|
@ -88,8 +87,6 @@ abstract class Benchmark {
|
|||
}
|
||||
|
||||
class BenchMarkResult {
|
||||
static final NumberFormat nf = NumberFormat.decimalPattern();
|
||||
|
||||
/// One of 'bytes', 'micros', or 'compound'.
|
||||
final String kindName;
|
||||
|
||||
|
@ -104,7 +101,7 @@ class BenchMarkResult {
|
|||
Map toJson() => {kindName: value};
|
||||
|
||||
@override
|
||||
String toString() => '$kindName: ${nf.format(value)}';
|
||||
String toString() => '$kindName: $value';
|
||||
}
|
||||
|
||||
class CompoundBenchMarkResult extends BenchMarkResult {
|
||||
|
|
|
@ -5,15 +5,11 @@
|
|||
import 'dart:convert';
|
||||
import 'dart:io';
|
||||
|
||||
import 'package:intl/intl.dart';
|
||||
|
||||
final NumberFormat numberFormat = NumberFormat.decimalPattern();
|
||||
|
||||
String escape(String? text) => text == null ? '' : htmlEscape.convert(text);
|
||||
|
||||
String printInteger(int value) => numberFormat.format(value);
|
||||
String printInteger(int value) => '$value';
|
||||
|
||||
String printMilliseconds(num value) => '${numberFormat.format(value)} ms';
|
||||
String printMilliseconds(int value) => '$value ms';
|
||||
|
||||
String printPercentage(num value, [int fractionDigits = 1]) =>
|
||||
'${(value * 100).toStringAsFixed(fractionDigits)}%';
|
||||
|
|
|
@ -20,7 +20,6 @@ dependencies:
|
|||
dart_style: any
|
||||
http: any
|
||||
html: any
|
||||
intl: any
|
||||
linter: any
|
||||
meta:
|
||||
path: ../meta
|
||||
|
|
|
@ -6,7 +6,6 @@ import 'dart:async';
|
|||
import 'dart:io' as io;
|
||||
|
||||
import 'package:analysis_server_client/protocol.dart' hide AnalysisError;
|
||||
import 'package:intl/intl.dart';
|
||||
import 'package:meta/meta.dart';
|
||||
import 'package:path/path.dart' as path;
|
||||
|
||||
|
@ -18,8 +17,6 @@ import '../utils.dart';
|
|||
class FixCommand extends DartdevCommand {
|
||||
static const String cmdName = 'fix';
|
||||
|
||||
static final NumberFormat _numberFormat = NumberFormat.decimalPattern();
|
||||
|
||||
static const String cmdDescription =
|
||||
'''Apply automated fixes to Dart source code.
|
||||
|
||||
|
@ -344,7 +341,7 @@ To use the tool, run either ['dart fix --dry-run'] for a preview of the proposed
|
|||
}
|
||||
}
|
||||
|
||||
static String _format(int value) => _numberFormat.format(value);
|
||||
static String _format(int value) => '$value';
|
||||
}
|
||||
|
||||
/// The result of running tests in a given directory.
|
||||
|
|
|
@ -23,7 +23,6 @@ dependencies:
|
|||
devtools_server: any
|
||||
front_end:
|
||||
path: ../front_end
|
||||
intl: any
|
||||
meta:
|
||||
path: ../meta
|
||||
nnbd_migration:
|
||||
|
|
Loading…
Reference in a new issue