diff options
author | Raphael Isemann <teemperor@gmail.com> | 2019-07-29 07:37:17 +0000 |
---|---|---|
committer | Raphael Isemann <teemperor@gmail.com> | 2019-07-29 07:37:17 +0000 |
commit | 6af4b7c86eee8e451dc23590b2b4c08a44cee603 (patch) | |
tree | 782ddd4bfe83dbbdb0e3597a45133e76674cb3ff | |
parent | eb0c53ffbf8e8b8b1374a47415fa1bb6e853108d (diff) |
[lldb][NFC] Remove DiagnosticManager::CopyDiagnostics
The Diagnostic class in LLDB is suppossed to be inherited from,
so just copying the diagnostics like this is wrong. The function
is also unused, so lets just get rid of it instead of creating
some cloning facility for it.
git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@367201 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/lldb/Expression/DiagnosticManager.h | 2 | ||||
-rw-r--r-- | source/Expression/DiagnosticManager.cpp | 9 |
2 files changed, 0 insertions, 11 deletions
diff --git a/include/lldb/Expression/DiagnosticManager.h b/include/lldb/Expression/DiagnosticManager.h index 557b9414f..472ae0ec3 100644 --- a/include/lldb/Expression/DiagnosticManager.h +++ b/include/lldb/Expression/DiagnosticManager.h @@ -125,8 +125,6 @@ public: m_diagnostics.push_back(diagnostic); } - void CopyDiagnostics(DiagnosticManager &otherDiagnostics); - size_t Printf(DiagnosticSeverity severity, const char *format, ...) __attribute__((format(printf, 3, 4))); size_t PutString(DiagnosticSeverity severity, llvm::StringRef str); diff --git a/source/Expression/DiagnosticManager.cpp b/source/Expression/DiagnosticManager.cpp index 53d85f8a6..b258ede92 100644 --- a/source/Expression/DiagnosticManager.cpp +++ b/source/Expression/DiagnosticManager.cpp @@ -77,12 +77,3 @@ size_t DiagnosticManager::PutString(DiagnosticSeverity severity, AddDiagnostic(str, severity, eDiagnosticOriginLLDB); return str.size(); } - -void DiagnosticManager::CopyDiagnostics(DiagnosticManager &otherDiagnostics) { - for (const DiagnosticList::value_type &other_diagnostic: - otherDiagnostics.Diagnostics()) { - AddDiagnostic( - other_diagnostic->GetMessage(), other_diagnostic->GetSeverity(), - other_diagnostic->getKind(), other_diagnostic->GetCompilerID()); - } -} |