[clangd] Remove an unused lambda capture.
authorEric Liu <ioeric@google.com>
Wed, 20 Dec 2017 17:22:56 +0000 (17:22 +0000)
committerEric Liu <ioeric@google.com>
Wed, 20 Dec 2017 17:22:56 +0000 (17:22 +0000)
llvm-svn: 321192

clang-tools-extra/unittests/clangd/Annotations.cpp

index 6953221..6bd81c8 100644 (file)
@@ -24,7 +24,7 @@ static void require(bool Assertion, const char *Msg, llvm::StringRef Code) {
 
 Annotations::Annotations(StringRef Text) {
   auto Here = [this] { return offsetToPosition(Code, Code.size()); };
-  auto Require = [this, Text](bool Assertion, const char *Msg) {
+  auto Require = [Text](bool Assertion, const char *Msg) {
     require(Assertion, Msg, Text);
   };
   Optional<StringRef> Name;