From: Daniel Dunbar Date: Tue, 13 Mar 2012 18:30:46 +0000 (+0000) Subject: [Basic] Eliminate DiagnosticBuilder::Suppress and matching ctor, this stuff is X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=243d7abb0f09c616781627b864ebde6ee8d0cdc1;p=clang [Basic] Eliminate DiagnosticBuilder::Suppress and matching ctor, this stuff is not used anymore (good thing we are still paying for it!). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@152642 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Basic/Diagnostic.h b/include/clang/Basic/Diagnostic.h index cdfc49b4b7..fff608c39c 100644 --- a/include/clang/Basic/Diagnostic.h +++ b/include/clang/Basic/Diagnostic.h @@ -793,15 +793,6 @@ public: NumFixits = D.NumFixits; } - /// \brief Simple enumeration value used to give a name to the - /// suppress-diagnostic constructor. - enum SuppressKind { Suppress }; - - /// \brief Create an empty DiagnosticBuilder object that represents - /// no actual diagnostic. - explicit DiagnosticBuilder(SuppressKind) - : DiagObj(0), NumArgs(0), NumRanges(0), NumFixits(0) { } - /// \brief Force the diagnostic builder to emit the diagnostic now. /// /// Once this function has been called, the DiagnosticBuilder object diff --git a/include/clang/Sema/Sema.h b/include/clang/Sema/Sema.h index 972b311d7f..9172eae244 100644 --- a/include/clang/Sema/Sema.h +++ b/include/clang/Sema/Sema.h @@ -776,9 +776,6 @@ public: SemaDiagnosticBuilder(DiagnosticBuilder &DB, Sema &SemaRef, unsigned DiagID) : DiagnosticBuilder(DB), SemaRef(SemaRef), DiagID(DiagID) { } - explicit SemaDiagnosticBuilder(Sema &SemaRef) - : DiagnosticBuilder(DiagnosticBuilder::Suppress), SemaRef(SemaRef) { } - ~SemaDiagnosticBuilder(); };