]> granicus.if.org Git - clang/commitdiff
[Basic] Eliminate DiagnosticBuilder::Suppress and matching ctor, this stuff is
authorDaniel Dunbar <daniel@zuster.org>
Tue, 13 Mar 2012 18:30:46 +0000 (18:30 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Tue, 13 Mar 2012 18:30:46 +0000 (18:30 +0000)
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

include/clang/Basic/Diagnostic.h
include/clang/Sema/Sema.h

index cdfc49b4b78c3babb141148cd526aa50a92a75b4..fff608c39cf1f348c16575924858d242e457cee1 100644 (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
index 972b311d7f48edf48ad1309fb0e174a63687e882..9172eae244dd272aa72d89b5eb4cfbb6d85c6722 100644 (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();
   };