net/SocketAddress: remove __cpp_lib_span checks

This commit is contained in:
Max Kellermann
2023-03-05 08:40:59 +01:00
parent 20a5276560
commit 452400b7ef
2 changed files with 1 additions and 16 deletions

View File

@@ -129,8 +129,6 @@ SocketAddress::GetPort() const noexcept
}
}
#ifdef __cpp_lib_span
static std::span<const std::byte>
GetSteadyPart(const struct sockaddr_in &address) noexcept
{
@@ -149,12 +147,8 @@ GetSteadyPart(const struct sockaddr_in6 &address) noexcept
};
}
#endif // __cpp_lib_span
#endif // HAVE_TCP
#ifdef __cpp_lib_span
std::span<const std::byte>
SocketAddress::GetSteadyPart() const noexcept
{
@@ -179,5 +173,3 @@ SocketAddress::GetSteadyPart() const noexcept
return {};
}
}
#endif