From 12950118c9b3820a8f0caaede98ab0b0d6a99b66 Mon Sep 17 00:00:00 2001 From: Jonas Devlieghere Date: Fri, 2 Nov 2018 17:34:17 +0000 Subject: [PATCH] [FileSystem] Remove `SetFileSystem` method. This is no longer relevant with the new way we initialize the FileSystem. llvm-svn: 346003 --- lldb/include/lldb/Host/FileSystem.h | 3 --- lldb/source/Host/common/FileSystem.cpp | 4 ---- 2 files changed, 7 deletions(-) diff --git a/lldb/include/lldb/Host/FileSystem.h b/lldb/include/lldb/Host/FileSystem.h index 269df10..dc733d7 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 73e74c1..72aaba3 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()); -- 2.7.4