mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-06-26 08:51:55 +02:00
Remove unused Make() overload in netmessagemaker.h
This commit is contained in:
parent
fa0ed07941
commit
66669da4a5
@ -15,19 +15,13 @@ public:
|
|||||||
explicit CNetMsgMaker(int /*unused*/) {}
|
explicit CNetMsgMaker(int /*unused*/) {}
|
||||||
|
|
||||||
template <typename... Args>
|
template <typename... Args>
|
||||||
CSerializedNetMsg Make(int /*unused*/, std::string msg_type, Args&&... args) const
|
CSerializedNetMsg Make(std::string msg_type, Args&&... args) const
|
||||||
{
|
{
|
||||||
CSerializedNetMsg msg;
|
CSerializedNetMsg msg;
|
||||||
msg.m_type = std::move(msg_type);
|
msg.m_type = std::move(msg_type);
|
||||||
VectorWriter{msg.data, 0, std::forward<Args>(args)...};
|
VectorWriter{msg.data, 0, std::forward<Args>(args)...};
|
||||||
return msg;
|
return msg;
|
||||||
}
|
}
|
||||||
|
|
||||||
template <typename... Args>
|
|
||||||
CSerializedNetMsg Make(std::string msg_type, Args&&... args) const
|
|
||||||
{
|
|
||||||
return Make(0, std::move(msg_type), std::forward<Args>(args)...);
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // BITCOIN_NETMESSAGEMAKER_H
|
#endif // BITCOIN_NETMESSAGEMAKER_H
|
||||||
|
Loading…
x
Reference in New Issue
Block a user