Skip to content

Commit 82565e8

Browse files
committed
[Sema] Remove TypeChecker::diagnose[WithNotes]
This will discourage future uses of the TypeChecker to emit diagnostics.
1 parent 56d07d1 commit 82565e8

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

lib/Sema/TypeChecker.h

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -708,18 +708,6 @@ class TypeChecker final {
708708
this->InImmediateMode = InImmediateMode;
709709
}
710710

711-
template<typename ...ArgTypes>
712-
InFlightDiagnostic diagnose(ArgTypes &&...Args) {
713-
return Diags.diagnose(std::forward<ArgTypes>(Args)...);
714-
}
715-
716-
void diagnoseWithNotes(InFlightDiagnostic parentDiag,
717-
llvm::function_ref<void(void)> builder) {
718-
CompoundDiagnosticTransaction transaction(Diags);
719-
parentDiag.flush();
720-
builder();
721-
}
722-
723711
static Type getArraySliceType(SourceLoc loc, Type elementType);
724712
static Type getDictionaryType(SourceLoc loc, Type keyType, Type valueType);
725713
static Type getOptionalType(SourceLoc loc, Type elementType);

0 commit comments

Comments
 (0)