[clangd] Remove dead variable. NFC
authorSam McCall <sam.mccall@gmail.com>
Wed, 30 Sep 2020 21:19:08 +0000 (23:19 +0200)
committerSam McCall <sam.mccall@gmail.com>
Wed, 30 Sep 2020 21:19:15 +0000 (23:19 +0200)
clang-tools-extra/clangd/URI.cpp

index f9e8fdc..80e3a10 100644 (file)
@@ -111,7 +111,6 @@ bool shouldEscape(unsigned char C) {
 /// - Reserved characters always escaped with exceptions like '/'.
 /// - All other characters are escaped.
 void percentEncode(llvm::StringRef Content, std::string &Out) {
-  std::string Result;
   for (unsigned char C : Content)
     if (shouldEscape(C)) {
       Out.push_back('%');