mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-10 10:52:31 -05:00
net: remove unused Transport::SetReceiveVersion
This commit is contained in:
parent
c3fad1f29d
commit
5f4b2c6d79
1 changed files with 0 additions and 10 deletions
10
src/net.h
10
src/net.h
|
@ -266,8 +266,6 @@ public:
|
||||||
|
|
||||||
/** Returns true if the current message is complete (so GetReceivedMessage can be called). */
|
/** Returns true if the current message is complete (so GetReceivedMessage can be called). */
|
||||||
virtual bool ReceivedMessageComplete() const = 0;
|
virtual bool ReceivedMessageComplete() const = 0;
|
||||||
/** Set the deserialization context version for objects returned by GetReceivedMessage. */
|
|
||||||
virtual void SetReceiveVersion(int version) = 0;
|
|
||||||
|
|
||||||
/** Feed wire bytes to the transport.
|
/** Feed wire bytes to the transport.
|
||||||
*
|
*
|
||||||
|
@ -413,14 +411,6 @@ public:
|
||||||
return WITH_LOCK(m_recv_mutex, return CompleteInternal());
|
return WITH_LOCK(m_recv_mutex, return CompleteInternal());
|
||||||
}
|
}
|
||||||
|
|
||||||
void SetReceiveVersion(int nVersionIn) override EXCLUSIVE_LOCKS_REQUIRED(!m_recv_mutex)
|
|
||||||
{
|
|
||||||
AssertLockNotHeld(m_recv_mutex);
|
|
||||||
LOCK(m_recv_mutex);
|
|
||||||
hdrbuf.SetVersion(nVersionIn);
|
|
||||||
vRecv.SetVersion(nVersionIn);
|
|
||||||
}
|
|
||||||
|
|
||||||
bool ReceivedBytes(Span<const uint8_t>& msg_bytes) override EXCLUSIVE_LOCKS_REQUIRED(!m_recv_mutex)
|
bool ReceivedBytes(Span<const uint8_t>& msg_bytes) override EXCLUSIVE_LOCKS_REQUIRED(!m_recv_mutex)
|
||||||
{
|
{
|
||||||
AssertLockNotHeld(m_recv_mutex);
|
AssertLockNotHeld(m_recv_mutex);
|
||||||
|
|
Loading…
Add table
Reference in a new issue