Skip to content

Commit b039e21

Browse files
authored
remove some unused dependencies (#2334)
1 parent f6d6f5e commit b039e21

File tree

3 files changed

+9
-13
lines changed

3 files changed

+9
-13
lines changed

lib/src/logging.dart

+6-4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file
2+
// for details. All rights reserved. Use of this source code is governed by a
3+
// BSD-style license that can be found in the LICENSE file.
4+
15
import 'dart:async';
26
import 'dart:convert';
37
import 'dart:io' show stderr, stdout;
@@ -6,10 +10,6 @@ import 'package:analyzer/file_system/file_system.dart';
610
import 'package:cli_util/cli_logging.dart' show Ansi;
711
import 'package:dartdoc/dartdoc.dart';
812
import 'package:dartdoc/src/dartdoc_options.dart';
9-
// Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file
10-
// for details. All rights reserved. Use of this source code is governed by a
11-
// BSD-style license that can be found in the LICENSE file.
12-
1313
import 'package:logging/logging.dart';
1414

1515
final _logger = Logger('dartdoc');
@@ -128,7 +128,9 @@ void startLogging(LoggingContext config) {
128128

129129
abstract class LoggingContext implements DartdocOptionContextBase {
130130
bool get json => optionSet['json'].valueAt(context);
131+
131132
bool get showProgress => optionSet['showProgress'].valueAt(context);
133+
132134
bool get quiet => optionSet['quiet'].valueAt(context);
133135
}
134136

pubspec.yaml

-6
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,13 @@ dependencies:
1313
cli_util: '>=0.1.4 <0.3.0'
1414
crypto: ^2.0.6
1515
html: '>=0.12.1 <0.15.0'
16-
# We don't use http_parser directly; this dep exists to ensure that we get at
17-
# least version 3.0.3 to work around an issue with 3.0.2.
18-
http_parser: '>=3.0.3 <4.0.0'
1916
logging: ^0.11.3+1
20-
process: ^3.0.5
2117
markdown: ^2.1.5
2218
meta: ^1.1.8
2319
mustache: ^1.1.0
2420
package_config: '>=0.1.5 <2.0.0'
2521
path: ^1.3.0
2622
pub_semver: ^1.3.7
27-
stack_trace: ^1.4.2
2823
yaml: ^2.1.0
2924

3025
dev_dependencies:
@@ -36,7 +31,6 @@ dev_dependencies:
3631
dhttpd: ^3.0.0
3732
glob: ^1.1.5
3833
grinder: ^0.8.2
39-
io: ^0.3.0
4034
http: ^0.12.0
4135
mockito: ^4.1.1
4236
pedantic: ^1.9.0

tool/grind.dart

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import 'package:analyzer/file_system/physical_file_system.dart';
99
import 'package:dartdoc/src/io_utils.dart';
1010
import 'package:dartdoc/src/package_meta.dart';
1111
import 'package:grinder/grinder.dart';
12-
import 'package:io/io.dart';
1312
import 'package:path/path.dart' as path;
1413
import 'package:yaml/yaml.dart' as yaml;
1514

@@ -130,6 +129,7 @@ Directory get testPackageDocsDir =>
130129
_testPackageDocsDir ??= createTempSync('test_package');
131130

132131
Directory _testPackageExperimentsDocsDir;
132+
133133
Directory get testPackageExperimentsDocsDir =>
134134
_testPackageExperimentsDocsDir ??=
135135
createTempSync('test_package_experiments');
@@ -761,7 +761,7 @@ class FlutterRepo {
761761
static Future<FlutterRepo> copyFromExistingFlutterRepo(
762762
FlutterRepo origRepo, String flutterPath, Map<String, String> env,
763763
[String label]) async {
764-
await copyPath(origRepo.flutterPath, flutterPath);
764+
copy(Directory(origRepo.flutterPath), Directory(flutterPath));
765765
var flutterRepo = FlutterRepo._(flutterPath, env, label);
766766
return flutterRepo;
767767
}
@@ -826,7 +826,7 @@ Future<String> _buildPubPackageDocs(
826826
var pubPackageDirOrig =
827827
cache.listSync().firstWhere((e) => e.path.contains(pubPackageName));
828828
var pubPackageDir = Directory.systemTemp.createTempSync(pubPackageName);
829-
await copyPath(pubPackageDirOrig.path, pubPackageDir.path);
829+
copy(pubPackageDirOrig, pubPackageDir);
830830

831831
if (packageMetaProvider
832832
.fromDir(PhysicalResourceProvider.INSTANCE.getFolder(pubPackageDir.path))

0 commit comments

Comments
 (0)