diff options
author | Mattes D <github@xoft.cz> | 2016-03-13 18:12:33 +0100 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2016-06-18 13:12:06 +0200 |
commit | 3184433756c6014e5192bdb92df9a233c62b55e7 (patch) | |
tree | ac1876080548ea7e18d327ac204ad0ba1f0c034b /src/OSSupport/NetworkInterfaceEnum.cpp | |
parent | Merge pull request #3224 from QUSpilPrgm/master (diff) | |
download | cuberite-3184433756c6014e5192bdb92df9a233c62b55e7.tar cuberite-3184433756c6014e5192bdb92df9a233c62b55e7.tar.gz cuberite-3184433756c6014e5192bdb92df9a233c62b55e7.tar.bz2 cuberite-3184433756c6014e5192bdb92df9a233c62b55e7.tar.lz cuberite-3184433756c6014e5192bdb92df9a233c62b55e7.tar.xz cuberite-3184433756c6014e5192bdb92df9a233c62b55e7.tar.zst cuberite-3184433756c6014e5192bdb92df9a233c62b55e7.zip |
Diffstat (limited to '')
-rw-r--r-- | src/OSSupport/NetworkInterfaceEnum.cpp | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/src/OSSupport/NetworkInterfaceEnum.cpp b/src/OSSupport/NetworkInterfaceEnum.cpp index d74565e07..c7339c408 100644 --- a/src/OSSupport/NetworkInterfaceEnum.cpp +++ b/src/OSSupport/NetworkInterfaceEnum.cpp @@ -22,34 +22,6 @@ -#ifdef SELF_TEST - -static class cEnumIPAddressTest -{ -public: - cEnumIPAddressTest(void) - { - cSelfTests::Get().Register(std::function<void(void)>(&Test), "Network IP enumeration"); - } - - static void Test(void) - { - LOG("Enumerating all IP addresses..."); - auto IPs = cNetwork::EnumLocalIPAddresses(); - for (auto & ip: IPs) - { - LOG(" %s", ip.c_str()); - } - LOG("Done."); - } -} g_EnumIPAddressTest; - -#endif // SELF_TEST - - - - - #ifdef _WIN32 /** Converts the SOCKET_ADDRESS structure received from the OS into an IP address string. */ |