From 82565e8a219f8f7ae2f6ffe541bb9197886cc968 Mon Sep 17 00:00:00 2001 From: Hamish Knight Date: Thu, 7 Nov 2019 13:38:58 -0800 Subject: [PATCH] [Sema] Remove TypeChecker::diagnose[WithNotes] This will discourage future uses of the TypeChecker to emit diagnostics. --- lib/Sema/TypeChecker.h | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/lib/Sema/TypeChecker.h b/lib/Sema/TypeChecker.h index 799bf7cbae6d9..2a7aa2c6fc811 100644 --- a/lib/Sema/TypeChecker.h +++ b/lib/Sema/TypeChecker.h @@ -708,18 +708,6 @@ class TypeChecker final { this->InImmediateMode = InImmediateMode; } - template - InFlightDiagnostic diagnose(ArgTypes &&...Args) { - return Diags.diagnose(std::forward(Args)...); - } - - void diagnoseWithNotes(InFlightDiagnostic parentDiag, - llvm::function_ref builder) { - CompoundDiagnosticTransaction transaction(Diags); - parentDiag.flush(); - builder(); - } - static Type getArraySliceType(SourceLoc loc, Type elementType); static Type getDictionaryType(SourceLoc loc, Type keyType, Type valueType); static Type getOptionalType(SourceLoc loc, Type elementType);