[clang-tools-extra] 85fc5bf - [clangd] Remove dead variable. NFC

Sam McCall via cfe-commits cfe-commits at lists.llvm.org
Wed Sep 30 14:19:53 PDT 2020


Author: Sam McCall
Date: 2020-09-30T23:19:15+02:00
New Revision: 85fc5bf341395171e67490061f6fbc76b297b78d

URL: https://github.com/llvm/llvm-project/commit/85fc5bf341395171e67490061f6fbc76b297b78d
DIFF: https://github.com/llvm/llvm-project/commit/85fc5bf341395171e67490061f6fbc76b297b78d.diff

LOG: [clangd] Remove dead variable. NFC

Added: 
    

Modified: 
    clang-tools-extra/clangd/URI.cpp

Removed: 
    


################################################################################
diff  --git a/clang-tools-extra/clangd/URI.cpp b/clang-tools-extra/clangd/URI.cpp
index f9e8fdc46fa7f..80e3a1017312d 100644
--- a/clang-tools-extra/clangd/URI.cpp
+++ b/clang-tools-extra/clangd/URI.cpp
@@ -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('%');


        


More information about the cfe-commits mailing list