Skip to content

Commit 84502b7

Browse files
committed
serialization: Drop references to GetVersion/GetType
Drop references to stream GetVersion()/GetType() methods which no longer exist
1 parent f3a2b52 commit 84502b7

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/serialize.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1103,12 +1103,12 @@ size_t GetSerializeSize(const T& t)
11031103
return (SizeComputer() << t).size();
11041104
}
11051105

1106-
/** Wrapper that overrides the GetParams() function of a stream (and hides GetVersion/GetType). */
1106+
/** Wrapper that overrides the GetParams() function of a stream. */
11071107
template <typename Params, typename SubStream>
11081108
class ParamsStream
11091109
{
11101110
const Params& m_params;
1111-
SubStream& m_substream; // private to avoid leaking version/type into serialization code that shouldn't see it
1111+
SubStream& m_substream;
11121112

11131113
public:
11141114
ParamsStream(const Params& params LIFETIMEBOUND, SubStream& substream LIFETIMEBOUND) : m_params{params}, m_substream{substream} {}
@@ -1119,8 +1119,6 @@ class ParamsStream
11191119
void ignore(size_t num) { m_substream.ignore(num); }
11201120
bool eof() const { return m_substream.eof(); }
11211121
size_t size() const { return m_substream.size(); }
1122-
int GetVersion() = delete; // Deprecated with Params usage
1123-
int GetType() = delete; // Deprecated with Params usage
11241122

11251123
//! Get reference to stream parameters.
11261124
template <typename P>

0 commit comments

Comments
 (0)