Remove unused Make() overload in netmessagemaker.h

This commit is contained in:
MarcoFalke 2023-11-16 14:46:51 +01:00
parent fa0ed07941
commit 66669da4a5
No known key found for this signature in database

View File

@ -15,19 +15,13 @@ public:
explicit CNetMsgMaker(int /*unused*/) {}
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;
msg.m_type = std::move(msg_type);
VectorWriter{msg.data, 0, std::forward<Args>(args)...};
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