diff options
| author | Zephyron <zephyron@citron-emu.orgq> | 2025-02-19 19:53:35 +1000 |
|---|---|---|
| committer | Mike Lothian <mike@fireburn.co.uk> | 2025-05-12 12:46:19 +0100 |
| commit | 047c006d59e7d64b4b81201287f379a04a8b4ce1 (patch) | |
| tree | 1e6c1e557a850470ac34bf55284dc3dfb198d472 /src | |
| parent | 0b55a120e8ac35dc21be92de9a9b43ae273b4881 (diff) | |
Remove redundant TranslateIPv4 function
Remove the TranslateIPv4 function that converts in_addr to IPv4Address, as it
appears to be unused or redundant. The functionality might be handled elsewhere
in the codebase or no longer needed.
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/internal_network/network.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/core/internal_network/network.cpp b/src/core/internal_network/network.cpp index 6cfc16342..42ad4dc5a 100644 --- a/src/core/internal_network/network.cpp +++ b/src/core/internal_network/network.cpp @@ -558,11 +558,6 @@ std::optional<Network::IPv4Address> GetHostIPv4Address() { return Network::TranslateIPv4(interface->ip_address); } -Network::IPv4Address TranslateIPv4(const in_addr& addr) { - const auto bytes = reinterpret_cast<const uint8_t*>(&addr.s_addr); - return Network::IPv4Address{bytes[0], bytes[1], bytes[2], bytes[3]}; -} - u32 IPv4AddressToInteger(IPv4Address ip_addr) { return static_cast<u32>(ip_addr[0]) << 24 | static_cast<u32>(ip_addr[1]) << 16 | static_cast<u32>(ip_addr[2]) << 8 | static_cast<u32>(ip_addr[3]); |
