summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorZephyron <zephyron@citron-emu.orgq>2025-02-19 19:53:35 +1000
committerZephyron <zephyron@citron-emu.orgq>2025-02-19 19:53:35 +1000
commit0576d40bf0f1044d8702568260282155715ce282 (patch)
tree0b7e16ffaa28a50cca62000cbbe8aa902e5bc403 /src
parent6917530ba505d27ca493aa7b5d8f54b643dfb22c (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.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/core/internal_network/network.cpp b/src/core/internal_network/network.cpp
index 5c812a895..c150ac8a4 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]);