Skip to content

Commit

Permalink
streams: Drop unused CAutoFile
Browse files Browse the repository at this point in the history
  • Loading branch information
ajtowns committed Nov 17, 2023
1 parent 8a8d9d0 commit 6b70cf7
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions src/streams.h
Original file line number Diff line number Diff line change
Expand Up @@ -505,26 +505,6 @@ class AutoFile
}
};

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.
*
Expand Down

0 comments on commit 6b70cf7

Please sign in to comment.