[FileSystem] Remove `SetFileSystem` method.

This is no longer relevant with the new way we initialize the
FileSystem.

llvm-svn: 346003
This commit is contained in:
Jonas Devlieghere 2018-11-02 17:34:17 +00:00
parent d7c2b798be
commit 12950118c9
2 changed files with 0 additions and 7 deletions

View File

@ -124,9 +124,6 @@ public:
std::error_code GetRealPath(const llvm::Twine &path,
llvm::SmallVectorImpl<char> &output) const;
protected:
void SetFileSystem(llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem> fs);
private:
static llvm::Optional<FileSystem> &InstanceImpl();
llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem> m_fs;

View File

@ -47,10 +47,6 @@ Optional<FileSystem> &FileSystem::InstanceImpl() {
return g_fs;
}
void FileSystem::SetFileSystem(IntrusiveRefCntPtr<vfs::FileSystem> fs) {
m_fs = fs;
}
sys::TimePoint<>
FileSystem::GetModificationTime(const FileSpec &file_spec) const {
return GetModificationTime(file_spec.GetPath());