@@ -905,38 +905,6 @@ class PackageGraph with CommentReferable, Nameable {
905905 return allElements;
906906 }
907907
908- /// Cache of 'nodoc' configurations.
909- ///
910- /// Glob lookups can be expensive, so cache per filename.
911- final _configSetsNodocFor = HashMap <String , bool >();
912-
913- /// Given an element's [fullName] , look up the nodoc configuration data and
914- /// determine whether to unconditionally treat the element as "nodoc", an
915- /// attribute indicating that documentation should not be included in
916- /// dartdoc's generated output.
917- ///
918- /// This configuration setting is deprecated.
919- bool configSetsNodocFor (String fullName) {
920- return _configSetsNodocFor.putIfAbsent (fullName, () {
921- var file = resourceProvider.getFile (fullName);
922- // Direct lookup instead of generating a custom context will save some
923- // cycles. We can't use the element's [DartdocOptionContext] because that
924- // might not be where the element was defined, which is what's important
925- // for nodoc's semantics. Looking up the defining element just to pull
926- // a context is again, slow.
927- var globs = (config.optionSet['nodoc' ].valueAt (file.parent) as List )
928- .cast <String >();
929- if (globs.isNotEmpty) {
930- packageGraph.defaultPackage.warn (
931- PackageWarning .deprecated,
932- message:
933- "The '--nodoc' option is deprecated, and will soon be removed." ,
934- );
935- }
936- return utils.matchGlobs (globs, fullName);
937- });
938- }
939-
940908 /// Returns a macro by [name] , or `null` if no macro is found.
941909 String ? getMacro (String name) {
942910 assert (_localDocumentationBuilt);
0 commit comments