From 4eb2a9ea4b6262bec0bc7c20cb3e684ea75caf42 Mon Sep 17 00:00:00 2001 From: Anthony Towns Date: Fri, 17 Nov 2023 23:57:35 +1000 Subject: [PATCH] streams: Drop unused CAutoFile --- src/streams.h | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/src/streams.h b/src/streams.h index 794a0dd6b77..068e2e8efd5 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 data_xor = {}) : AutoFile{file, std::move(data_xor)} {} - - template - CAutoFile& operator<<(const T& obj) - { - ::Serialize(*this, obj); - return (*this); - } - - template - 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. *