diff options
author | Ryan Ofsky <ryan@ofsky.org> | 2024-02-21 07:07:50 -0500 |
---|---|---|
committer | Ryan Ofsky <ryan@ofsky.org> | 2024-02-21 07:07:50 -0500 |
commit | 84502b755bcc35413ad466047893b5edf134c53f (patch) | |
tree | c326b64287605e81e456dd9828c827e364543548 /src/serialize.h | |
parent | f3a2b5237688e9f574444e793724664b00fb7f2a (diff) | |
download | bitcoin-84502b755bcc35413ad466047893b5edf134c53f.tar.xz |
serialization: Drop references to GetVersion/GetType
Drop references to stream GetVersion()/GetType() methods which no longer exist
Diffstat (limited to 'src/serialize.h')
-rw-r--r-- | src/serialize.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/serialize.h b/src/serialize.h index 44e2db7ac7..08d9a80f96 100644 --- a/src/serialize.h +++ b/src/serialize.h @@ -1103,12 +1103,12 @@ size_t GetSerializeSize(const T& t) return (SizeComputer() << t).size(); } -/** Wrapper that overrides the GetParams() function of a stream (and hides GetVersion/GetType). */ +/** Wrapper that overrides the GetParams() function of a stream. */ template <typename Params, typename SubStream> class ParamsStream { const Params& m_params; - SubStream& m_substream; // private to avoid leaking version/type into serialization code that shouldn't see it + SubStream& m_substream; public: ParamsStream(const Params& params LIFETIMEBOUND, SubStream& substream LIFETIMEBOUND) : m_params{params}, m_substream{substream} {} @@ -1119,8 +1119,6 @@ public: void ignore(size_t num) { m_substream.ignore(num); } bool eof() const { return m_substream.eof(); } size_t size() const { return m_substream.size(); } - int GetVersion() = delete; // Deprecated with Params usage - int GetType() = delete; // Deprecated with Params usage //! Get reference to stream parameters. template <typename P> |