diff options
author | Douglas Gregor <dgregor@apple.com> | 2013-05-03 23:07:45 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2013-05-03 23:07:45 +0000 |
commit | cc2b653c319599f502425d2c3de29865d47bb9e4 (patch) | |
tree | f48754b8a62d6358871a82346a66bd228fd108cc /include/clang/Basic | |
parent | a4a90cabfa15c900016a7cfaea51a6d4e8ebf4db (diff) |
Remove DiagnosticConsumer::clone(), a bad idea that is now unused.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@181070 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic')
-rw-r--r-- | include/clang/Basic/Diagnostic.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/include/clang/Basic/Diagnostic.h b/include/clang/Basic/Diagnostic.h index 2d9d288964..900964b68a 100644 --- a/include/clang/Basic/Diagnostic.h +++ b/include/clang/Basic/Diagnostic.h @@ -1301,10 +1301,6 @@ public: /// warnings and errors. virtual void HandleDiagnostic(DiagnosticsEngine::Level DiagLevel, const Diagnostic &Info); - - /// \brief Clone the diagnostic consumer, producing an equivalent consumer - /// that can be used in a different context. - virtual DiagnosticConsumer *clone(DiagnosticsEngine &Diags) const = 0; }; /// \brief A diagnostic client that ignores all diagnostics. @@ -1314,9 +1310,6 @@ class IgnoringDiagConsumer : public DiagnosticConsumer { const Diagnostic &Info) { // Just ignore it. } - DiagnosticConsumer *clone(DiagnosticsEngine &Diags) const { - return new IgnoringDiagConsumer(); - } }; /// \brief Diagnostic consumer that forwards diagnostics along to an @@ -1335,8 +1328,6 @@ public: virtual void clear(); virtual bool IncludeInDiagnosticCounts() const; - - virtual DiagnosticConsumer *clone(DiagnosticsEngine &Diags) const; }; // Struct used for sending info about how a type should be printed. |