diff --git a/lldb/include/lldb/Host/FileSystem.h b/lldb/include/lldb/Host/FileSystem.h index 269df10d42ce..dc733d7b1cca 100644 --- a/lldb/include/lldb/Host/FileSystem.h +++ b/lldb/include/lldb/Host/FileSystem.h @@ -124,9 +124,6 @@ public: std::error_code GetRealPath(const llvm::Twine &path, llvm::SmallVectorImpl &output) const; -protected: - void SetFileSystem(llvm::IntrusiveRefCntPtr fs); - private: static llvm::Optional &InstanceImpl(); llvm::IntrusiveRefCntPtr m_fs; diff --git a/lldb/source/Host/common/FileSystem.cpp b/lldb/source/Host/common/FileSystem.cpp index 73e74c1069f3..72aaba321f2f 100644 --- a/lldb/source/Host/common/FileSystem.cpp +++ b/lldb/source/Host/common/FileSystem.cpp @@ -47,10 +47,6 @@ Optional &FileSystem::InstanceImpl() { return g_fs; } -void FileSystem::SetFileSystem(IntrusiveRefCntPtr fs) { - m_fs = fs; -} - sys::TimePoint<> FileSystem::GetModificationTime(const FileSpec &file_spec) const { return GetModificationTime(file_spec.GetPath());