diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/network/connection.h | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/network/connection.h b/src/network/connection.h index 94d5aa1e9..e1bb613f0 100644 --- a/src/network/connection.h +++ b/src/network/connection.h @@ -330,18 +330,6 @@ struct ConnectionCommand bool raw = false; ConnectionCommand() = default; - ConnectionCommand &operator=(const ConnectionCommand &other) - { - type = other.type; - address = other.address; - peer_id = other.peer_id; - channelnum = other.channelnum; - // We must copy the buffer here to prevent race condition - data = SharedBuffer<u8>(*other.data, other.data.getSize()); - reliable = other.reliable; - raw = other.reliable; - return *this; - } void serve(Address address_) { |