summaryrefslogtreecommitdiff
path: root/lldb/source/Core/StreamFile.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/source/Core/StreamFile.cpp')
-rw-r--r--lldb/source/Core/StreamFile.cpp17
1 files changed, 0 insertions, 17 deletions
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<File>(); }
-
StreamFile::StreamFile(uint32_t flags, uint32_t addr_size, ByteOrder byte_order)
: Stream(flags, addr_size, byte_order) {
m_file_sp = std::make_shared<File>();
@@ -32,20 +29,6 @@ StreamFile::StreamFile(FILE *fh, bool transfer_ownership) : Stream() {
m_file_sp = std::make_shared<NativeFile>(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<File>();
- }
-}
-
StreamFile::StreamFile(const char *path, File::OpenOptions options,
uint32_t permissions)
: Stream() {