File tree Expand file tree Collapse file tree 1 file changed +0
-10
lines changed
tools/SourceKit/lib/SwiftLang Expand file tree Collapse file tree 1 file changed +0
-10
lines changed Original file line number Diff line number Diff line change @@ -468,18 +468,8 @@ void SwiftLangSupport::printFullyAnnotatedGenericReq(
468
468
void SwiftLangSupport::printFullyAnnotatedSynthesizedDeclaration (
469
469
const swift::ValueDecl *VD, TypeOrExtensionDecl Target,
470
470
llvm::raw_ostream &OS) {
471
- // FIXME: Mutable global variable - gross!
472
- static llvm::SmallDenseMap<swift::ValueDecl*,
473
- std::unique_ptr<swift::SynthesizedExtensionAnalyzer>> TargetToAnalyzerMap;
474
471
FullyAnnotatedDeclarationPrinter Printer (OS);
475
472
PrintOptions PO = PrintOptions::printQuickHelpDeclaration ();
476
- NominalTypeDecl *TargetNTD = Target.getBaseNominal ();
477
-
478
- if (TargetToAnalyzerMap.count (TargetNTD) == 0 ) {
479
- std::unique_ptr<SynthesizedExtensionAnalyzer> Analyzer (
480
- new SynthesizedExtensionAnalyzer (TargetNTD, PO));
481
- TargetToAnalyzerMap.insert ({TargetNTD, std::move (Analyzer)});
482
- }
483
473
PO.initForSynthesizedExtension (Target);
484
474
PO.PrintAsMember = true ;
485
475
VD->print (Printer, PO);
You can’t perform that action at this time.
0 commit comments