From 08824567af95dbbf3746661c6fb51d649d01cb60 Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Mon, 23 Apr 2018 14:58:18 +0000 Subject: [PATCH] [clangd] Prune some dead declarations. No functionality change. llvm-svn: 330599 --- clang-tools-extra/clangd/Diagnostics.h | 5 ----- clang-tools-extra/clangd/Trace.h | 4 ---- 2 files changed, 9 deletions(-) diff --git a/clang-tools-extra/clangd/Diagnostics.h b/clang-tools-extra/clangd/Diagnostics.h index b2174f667672..b43f04ae535d 100644 --- a/clang-tools-extra/clangd/Diagnostics.h +++ b/clang-tools-extra/clangd/Diagnostics.h @@ -85,16 +85,11 @@ public: const clang::Diagnostic &Info) override; private: - bool shouldIgnore(DiagnosticsEngine::Level DiagLevel, - const clang::Diagnostic &Info); - void flushLastDiag(); std::vector Output; llvm::Optional LangOpts; llvm::Optional LastDiag; - /// Is any diag or note from LastDiag in the main file? - bool LastDiagMentionsMainFile = false; }; } // namespace clangd diff --git a/clang-tools-extra/clangd/Trace.h b/clang-tools-extra/clangd/Trace.h index 01c2775f4648..55a31ada4bfa 100644 --- a/clang-tools-extra/clangd/Trace.h +++ b/clang-tools-extra/clangd/Trace.h @@ -93,10 +93,6 @@ private: WithContext RestoreCtx; }; -/// Returns mutable span metadata if this span is interested. -/// Prefer to use SPAN_ATTACH rather than accessing this directly. -json::obj *spanArgs(); - /// Attach a key-value pair to a Span event. /// This is not threadsafe when used with the same Span. #define SPAN_ATTACH(S, Name, Expr) \