@@ -408,20 +408,6 @@ void FrontendSourceFileDepGraphFactory::addAllDefinedDecls() {
408408 declFinder.classMembers );
409409}
410410
411- // / Given an array of Decls or pairs of them in \p declsOrPairs
412- // / create node pairs for context and name
413- template <NodeKind kind, typename ContentsT>
414- void FrontendSourceFileDepGraphFactory::addAllDefinedDeclsOfAGivenType (
415- std::vector<ContentsT> &contentsVec) {
416- for (const auto &declOrPair : contentsVec) {
417- Optional<std::string> fp =
418- AbstractSourceFileDepGraphFactory::getFingerprintIfAny (declOrPair);
419- addADefinedDecl (
420- DependencyKey::createForProvidedEntityInterface<kind>(declOrPair),
421- fp ? StringRef (fp.getValue ()) : Optional<StringRef>());
422- }
423- }
424-
425411// ==============================================================================
426412// MARK: FrontendSourceFileDepGraphFactory - adding collections of used Decls
427413// ==============================================================================
@@ -565,17 +551,3 @@ void ModuleDepGraphFactory::addAllDefinedDecls() {
565551 addAllDefinedDeclsOfAGivenType<NodeKind::dynamicLookup>(
566552 declFinder.classMembers );
567553}
568-
569- // / Given an array of Decls or pairs of them in \p declsOrPairs
570- // / create node pairs for context and name
571- template <NodeKind kind, typename ContentsT>
572- void ModuleDepGraphFactory::addAllDefinedDeclsOfAGivenType (
573- std::vector<ContentsT> &contentsVec) {
574- for (const auto &declOrPair : contentsVec) {
575- Optional<std::string> fp =
576- AbstractSourceFileDepGraphFactory::getFingerprintIfAny (declOrPair);
577- addADefinedDecl (
578- DependencyKey::createForProvidedEntityInterface<kind>(declOrPair),
579- fp ? StringRef (fp.getValue ()) : Optional<StringRef>());
580- }
581- }
0 commit comments