[clangd] Drop unnecessary FS modifications in FindSymbolsTests
authorKadir Cetinkaya <kadircet@google.com>
Mon, 8 Jun 2020 16:17:42 +0000 (18:17 +0200)
committerKadir Cetinkaya <kadircet@google.com>
Mon, 8 Jun 2020 16:36:18 +0000 (18:36 +0200)
clang-tools-extra/clangd/unittests/FindSymbolsTests.cpp

index dea783f..3b3d0f6 100644 (file)
@@ -71,9 +71,7 @@ protected:
   }
 
   void addFile(llvm::StringRef FileName, llvm::StringRef Contents) {
-    auto Path = testPath(FileName);
-    FSProvider.Files[Path] = std::string(Contents);
-    Server.addDocument(Path, Contents);
+    Server.addDocument(testPath(FileName), Contents);
   }
 };
 
@@ -324,7 +322,6 @@ protected:
   }
 
   void addFile(llvm::StringRef FilePath, llvm::StringRef Contents) {
-    FSProvider.Files[FilePath] = std::string(Contents);
     Server.addDocument(FilePath, Contents);
   }
 };