mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-03-28 00:16:04 +01:00
serialize: drop GetSerializeSizeMany
This commit is contained in:
@@ -89,7 +89,9 @@ struct PSBTProprietary
|
||||
template<typename Stream, typename... X>
|
||||
void SerializeToVector(Stream& s, const X&... args)
|
||||
{
|
||||
WriteCompactSize(s, GetSerializeSizeMany(s.GetVersion(), args...));
|
||||
SizeComputer sizecomp;
|
||||
SerializeMany(sizecomp, args...);
|
||||
WriteCompactSize(s, sizecomp.size());
|
||||
SerializeMany(s, args...);
|
||||
}
|
||||
|
||||
|
||||
@@ -1126,14 +1126,6 @@ size_t GetSerializeSize(const T& t, int nVersion = 0)
|
||||
return (SizeComputer() << t).size();
|
||||
}
|
||||
|
||||
template <typename... T>
|
||||
size_t GetSerializeSizeMany(int nVersion, const T&... t)
|
||||
{
|
||||
SizeComputer sc;
|
||||
SerializeMany(sc, t...);
|
||||
return sc.size();
|
||||
}
|
||||
|
||||
/** Wrapper that overrides the GetParams() function of a stream (and hides GetVersion/GetType). */
|
||||
template <typename Params, typename SubStream>
|
||||
class ParamsStream
|
||||
|
||||
Reference in New Issue
Block a user