aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Ridgers <[email protected]>2021-12-02 08:58:03 +0100
committerMartin Ridgers <[email protected]>2021-12-02 11:36:19 +0100
commit743626e090748609989f2529bfdcc0011c6f856c (patch)
treed8c98b033b2c1f12c1e441d2ebdd35c21a3b0b59
parentUse zen::ThrowLastError() in place of throwing system_error directly (diff)
downloadzen-743626e090748609989f2529bfdcc0011c6f856c.tar.xz
zen-743626e090748609989f2529bfdcc0011c6f856c.zip
For portability's sake, removed two unused InternalFile methods
-rw-r--r--zen/internalfile.cpp6
-rw-r--r--zen/internalfile.h3
2 files changed, 0 insertions, 9 deletions
diff --git a/zen/internalfile.cpp b/zen/internalfile.cpp
index fc473b241..ef88b9e04 100644
--- a/zen/internalfile.cpp
+++ b/zen/internalfile.cpp
@@ -222,9 +222,3 @@ InternalFile::Write(const void* Data, uint64_t Size, uint64_t Offset)
zen::ThrowLastError("Failed to write to file '{}'"_format(""));//zen::PathFromHandle(m_File)));
}
}
-
-void
-InternalFile::Flush()
-{
- m_File.Flush();
-}
diff --git a/zen/internalfile.h b/zen/internalfile.h
index a718cf053..4eca48443 100644
--- a/zen/internalfile.h
+++ b/zen/internalfile.h
@@ -51,9 +51,6 @@ public:
void OpenWrite(std::filesystem::path FileName, bool isCreate);
void Write(const void* Data, uint64_t Size, uint64_t Offset);
- void Flush();
- void* Handle() { return m_File; }
-
const void* MemoryMapFile();
size_t GetFileSize();