diff options
author | Anthony Towns <aj@erisian.com.au> | 2023-11-17 23:57:35 +1000 |
---|---|---|
committer | Anthony Towns <aj@erisian.com.au> | 2023-11-18 03:01:41 +1000 |
commit | 4eb2a9ea4b6262bec0bc7c20cb3e684ea75caf42 (patch) | |
tree | 335f0208cc6fbab2c1feaf6095d06075657afaa3 /src/streams.h | |
parent | cde9a4b137e93f1548dffac9b396ca0b472b6187 (diff) |
streams: Drop unused CAutoFile
Diffstat (limited to 'src/streams.h')
-rw-r--r-- | src/streams.h | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/src/streams.h b/src/streams.h index 794a0dd6b7..068e2e8efd 100644 --- a/src/streams.h +++ b/src/streams.h @@ -505,26 +505,6 @@ public: } }; -class CAutoFile : public AutoFile -{ -public: - explicit CAutoFile(std::FILE* file, int /*unused*/, std::vector<std::byte> data_xor = {}) : AutoFile{file, std::move(data_xor)} {} - - template<typename T> - CAutoFile& operator<<(const T& obj) - { - ::Serialize(*this, obj); - return (*this); - } - - template<typename T> - CAutoFile& operator>>(T&& obj) - { - ::Unserialize(*this, obj); - return (*this); - } -}; - /** Wrapper around an AutoFile& that implements a ring buffer to * deserialize from. It guarantees the ability to rewind a given number of bytes. * |