From 706b4fc47bbc608932d3b491ae19a3b9cde9497b Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Fri, 17 Jan 2020 20:45:01 +0000 Subject: Vendor import of llvm-project master e26a78e70, the last commit before the llvmorg-11-init tag, from which release/10.x was branched. --- lldb/source/Core/StreamFile.cpp | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'lldb/source/Core/StreamFile.cpp') diff --git a/lldb/source/Core/StreamFile.cpp b/lldb/source/Core/StreamFile.cpp index 2ddb39659d66..475c27ec4117 100644 --- a/lldb/source/Core/StreamFile.cpp +++ b/lldb/source/Core/StreamFile.cpp @@ -15,9 +15,6 @@ using namespace lldb; using namespace lldb_private; -// StreamFile constructor -StreamFile::StreamFile() : Stream() { m_file_sp = std::make_shared(); } - StreamFile::StreamFile(uint32_t flags, uint32_t addr_size, ByteOrder byte_order) : Stream(flags, addr_size, byte_order) { m_file_sp = std::make_shared(); @@ -32,20 +29,6 @@ StreamFile::StreamFile(FILE *fh, bool transfer_ownership) : Stream() { m_file_sp = std::make_shared(fh, transfer_ownership); } -StreamFile::StreamFile(const char *path) : Stream() { - auto file = FileSystem::Instance().Open( - FileSpec(path), File::eOpenOptionWrite | File::eOpenOptionCanCreate | - File::eOpenOptionCloseOnExec); - if (file) - m_file_sp = std::move(file.get()); - else { - // TODO refactor this so the error gets popagated up instead of logged here. - LLDB_LOG_ERROR(GetLogIfAllCategoriesSet(LIBLLDB_LOG_HOST), file.takeError(), - "Cannot open {1}: {0}", path); - m_file_sp = std::make_shared(); - } -} - StreamFile::StreamFile(const char *path, File::OpenOptions options, uint32_t permissions) : Stream() { -- cgit v1.3