@@ -9,7 +9,6 @@ import 'package:analyzer/file_system/physical_file_system.dart';
99import 'package:args/args.dart' ;
1010import 'package:collection/collection.dart' ;
1111import 'package:crypto/crypto.dart' as crypto;
12- import 'package:dartdoc/src/io_utils.dart' ;
1312import 'package:dartdoc/src/package_meta.dart' ;
1413import 'package:path/path.dart' as path;
1514import 'package:sass/sass.dart' as sass;
@@ -497,12 +496,7 @@ Future<void> docSdk({bool withStats = false}) async => _docSdk(
497496Map <String , String > createThrowawayPubCache () {
498497 var pubCache = Directory .systemTemp.createTempSync ('pubcache' );
499498 var pubCacheBin = Directory (path.join (pubCache.path, 'bin' ));
500- var defaultCache = Directory (_defaultPubCache);
501- if (defaultCache.existsSync ()) {
502- io_utils.copy (defaultCache, pubCache);
503- } else {
504- pubCacheBin.createSync ();
505- }
499+ pubCacheBin.createSync ();
506500 return Map .fromIterables ([
507501 'PUB_CACHE' ,
508502 'PATH' ,
@@ -512,9 +506,6 @@ Map<String, String> createThrowawayPubCache() {
512506 ]);
513507}
514508
515- final String _defaultPubCache = Platform .environment['PUB_CACHE' ] ??
516- path.context.resolveTildePath ('~/.pub-cache' );
517-
518509Future <String > docTestingPackage ({
519510 bool withStats = false ,
520511}) async {
0 commit comments