Skip to content

Commit 11e79dc

Browse files
committed
[SourceKit] Remove a globally shared variable from inside a method that doesn't seem to get used anymore
1 parent 8cfc5ed commit 11e79dc

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

tools/SourceKit/lib/SwiftLang/SwiftSourceDocInfo.cpp

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -468,18 +468,8 @@ void SwiftLangSupport::printFullyAnnotatedGenericReq(
468468
void SwiftLangSupport::printFullyAnnotatedSynthesizedDeclaration(
469469
const swift::ValueDecl *VD, TypeOrExtensionDecl Target,
470470
llvm::raw_ostream &OS) {
471-
// FIXME: Mutable global variable - gross!
472-
static llvm::SmallDenseMap<swift::ValueDecl*,
473-
std::unique_ptr<swift::SynthesizedExtensionAnalyzer>> TargetToAnalyzerMap;
474471
FullyAnnotatedDeclarationPrinter Printer(OS);
475472
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-
}
483473
PO.initForSynthesizedExtension(Target);
484474
PO.PrintAsMember = true;
485475
VD->print(Printer, PO);

0 commit comments

Comments
 (0)