@@ -36,10 +36,6 @@ import 'package:path/path.dart' as p show Context;
3636abstract class PackageBuilder {
3737 // Builds package graph to be used by documentation generator.
3838 Future <PackageGraph > buildPackageGraph ();
39-
40- /// The `include-external` option is deprecated, so we track whether it was
41- /// used, to report it.
42- bool get includeExternalsWasSpecified;
4339}
4440
4541/// A package builder that understands pub package format.
@@ -281,11 +277,6 @@ class PubPackageBuilder implements PackageBuilder {
281277 processedLibraries.add (resolvedLibrary.element);
282278 }
283279 files.addAll (newFiles);
284- var externals = _includedExternalsFrom (newFiles);
285- if (externals.isNotEmpty) {
286- includeExternalsWasSpecified = true ;
287- }
288- files.addAll (externals);
289280
290281 var packages = _packageMetasForFiles (files.difference (_knownParts));
291282 filesInCurrentPass = {...files.difference (_knownParts)};
@@ -382,25 +373,11 @@ class PubPackageBuilder implements PackageBuilder {
382373 return dirs;
383374 }
384375
385- /// Calculates 'includeExternal' based on a list of files.
386- ///
387- /// Assumes each file might be part of a [DartdocOptionContext] , and loads
388- /// those objects to find any [DartdocOptionContext.includeExternal]
389- /// configurations therein.
390- List <String > _includedExternalsFrom (Iterable <String > files) => [
391- for (var file in files)
392- ...DartdocOptionContext .fromContext (
393- _config,
394- _config.resourceProvider.getFile (file),
395- _config.resourceProvider,
396- ).includeExternal,
397- ];
398-
399376 /// Returns the set of files that may contain elements that need to be
400377 /// documented.
401378 ///
402- /// This takes into account the 'auto-include-dependencies' option, the
403- /// 'exclude' option, and the 'include-external' option .
379+ /// This takes into account the 'auto-include-dependencies' option, and the
380+ /// 'exclude' option.
404381 Future <Set <String >> _getFilesToDocument () async {
405382 if (_config.topLevelPackageMeta.isSdk) {
406383 return _sdkFilesToDocument
@@ -410,12 +387,7 @@ class PubPackageBuilder implements PackageBuilder {
410387 var packagesToDocument = await _findPackagesToDocument (
411388 _config.inputDir,
412389 );
413- var files = _findFilesToDocumentInPackage (packagesToDocument).toList ();
414- var externals = _includedExternalsFrom (files);
415- if (externals.isNotEmpty) {
416- includeExternalsWasSpecified = true ;
417- files = [...files, ...externals];
418- }
390+ var files = _findFilesToDocumentInPackage (packagesToDocument);
419391 return {
420392 ...files.map (
421393 (s) => _pathContext.absolute (_resourceProvider.getFile (s).path)),
@@ -444,9 +416,6 @@ class PubPackageBuilder implements PackageBuilder {
444416 };
445417 }
446418
447- @override
448- bool includeExternalsWasSpecified = false ;
449-
450419 Iterable <String > get _embedderSdkFiles => [
451420 for (var dartUri in _embedderSdkUris)
452421 _pathContext.absolute (_resourceProvider
0 commit comments