net/StaticSocketAddress: remove GetAddress()

This commit is contained in:
Max Kellermann
2019-02-27 23:26:59 +01:00
parent 1f8ff48168
commit 4fbf6b6c95

View File

@@ -66,14 +66,6 @@ public:
return reinterpret_cast<const struct sockaddr *>(&address);
}
struct sockaddr *GetAddress() noexcept {
return reinterpret_cast<struct sockaddr *>(&address);
}
const struct sockaddr *GetAddress() const noexcept {
return reinterpret_cast<const struct sockaddr *>(&address);
}
constexpr size_type GetCapacity() const noexcept {
return sizeof(address);
}