[Basic] Eliminate DiagnosticBuilder::Suppress and matching ctor, this stuff is

not used anymore (good thing we are still paying for it!).

llvm-svn: 152642
This commit is contained in:
Daniel Dunbar
2012-03-13 18:30:46 +00:00
parent 6eac93e573
commit f4bf6bb394
2 changed files with 0 additions and 12 deletions

View File

@@ -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

View File

@@ -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();
};