@@ -316,12 +316,6 @@ struct ASTContext::Implementation {
316316 // / actual \c SourceLocs that require opening their external buffer.
317317 llvm::DenseMap<const Decl *, ExternalSourceLocs *> ExternalSourceLocs;
318318
319- // / Map from Swift declarations to raw comments.
320- llvm::DenseMap<const Decl *, std::pair<RawComment, bool >> RawComments;
321-
322- // / Map from Swift declarations to brief comments.
323- llvm::DenseMap<const Decl *, StringRef> BriefComments;
324-
325319 // / Map from declarations to foreign error conventions.
326320 // / This applies to both actual imported functions and to @objc functions.
327321 llvm::DenseMap<const AbstractFunctionDecl *,
@@ -2610,30 +2604,6 @@ void ASTContext::setExternalSourceLocs(const Decl *D,
26102604 getImpl ().ExternalSourceLocs [D] = Locs;
26112605}
26122606
2613- Optional<std::pair<RawComment, bool >> ASTContext::getRawComment (const Decl *D) {
2614- auto Known = getImpl ().RawComments .find (D);
2615- if (Known == getImpl ().RawComments .end ())
2616- return None;
2617-
2618- return Known->second ;
2619- }
2620-
2621- void ASTContext::setRawComment (const Decl *D, RawComment RC, bool FromSerialized) {
2622- getImpl ().RawComments [D] = std::make_pair (RC, FromSerialized);
2623- }
2624-
2625- Optional<StringRef> ASTContext::getBriefComment (const Decl *D) {
2626- auto Known = getImpl ().BriefComments .find (D);
2627- if (Known == getImpl ().BriefComments .end ())
2628- return None;
2629-
2630- return Known->second ;
2631- }
2632-
2633- void ASTContext::setBriefComment (const Decl *D, StringRef Comment) {
2634- getImpl ().BriefComments [D] = Comment;
2635- }
2636-
26372607NormalProtocolConformance *
26382608ASTContext::getConformance (Type conformingType,
26392609 ProtocolDecl *protocol,
@@ -2936,8 +2906,6 @@ size_t ASTContext::getTotalMemory() const {
29362906 getImpl ().Allocator .getTotalMemory () +
29372907 getImpl ().Cleanups .capacity () +
29382908 llvm::capacity_in_bytes (getImpl ().ModuleLoaders ) +
2939- llvm::capacity_in_bytes (getImpl ().RawComments ) +
2940- llvm::capacity_in_bytes (getImpl ().BriefComments ) +
29412909 llvm::capacity_in_bytes (getImpl ().ModuleTypes ) +
29422910 llvm::capacity_in_bytes (getImpl ().GenericParamTypes ) +
29432911 // getImpl().GenericFunctionTypes ?
0 commit comments