mirror of
https://github.com/savoirfairelinux/opendht.git
synced 2026-11-08 12:28:42 +00:00
network engine: remove unused constant
This commit is contained in:
1 parent
0a130c7045
commit
8cd3ff9fc4
1 file changed
-3
@@ -93,8 +93,6 @@ set_nonblocking(int fd, int nonblocking)
|
||||
* host order.
|
||||
*/
|
||||
struct TransId final : public std::array<uint8_t, 4> {
|
||||
static const constexpr uint16_t INVALID {0};
|
||||
|
||||
TransId() { std::fill(begin(), end(), 0); }
|
||||
TransId(const std::array<char, 4>& o) { std::copy(o.begin(), o.end(), begin()); }
|
||||
TransId(uint32_t id) {
|
||||
@@ -107,7 +105,6 @@ struct TransId final : public std::array<uint8_t, 4> {
|
||||
};
|
||||
|
||||
|
||||
|
||||
struct NetworkEngine::PartialMessage {
|
||||
SockAddr from;
|
||||
time_point start;
|
||||
|
||||
Reference in new issue
Block a user