diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-11-05 23:32:09 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-11-05 23:32:09 +0000 |
| commit | d8d2fdb2f5559f3ad94a18578ded01f771af9345 (patch) | |
| tree | d11cf9069698e5bc495ba0cb0be0850c496fe73d /src | |
| parent | e8a6e330570b817c6c5fdfef0f508f2cbe0168ef (diff) | |
Remove apparently not-required network_interfaces().
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/cross.cc | 25 | ||||
| -rw-r--r-- | src/lib/cross.h | 1 |
2 files changed, 0 insertions, 26 deletions
diff --git a/src/lib/cross.cc b/src/lib/cross.cc index 45c38da2b..41051ee2e 100644 --- a/src/lib/cross.cc +++ b/src/lib/cross.cc @@ -269,28 +269,3 @@ openssl_path () #endif } - -list<string> -network_interfaces () -{ - list<string> interfaces; - -#ifdef DCPOMATIC_POSIX - struct ifaddrs* addresses = 0; - - getifaddrs (&addresses); - - for (struct ifaddrs* i = addresses; i; i = i->ifa_next) { - if (i->ifa_addr->sa_family == AF_INET) { - void* p = &((struct sockaddr_in *) i->ifa_addr)->sin_addr; - char b[INET_ADDRSTRLEN]; - inet_ntop (AF_INET, p, b, INET_ADDRSTRLEN); - interfaces.push_back (b); - } - } - - freeifaddrs (addresses); -#endif - - return interfaces; -} diff --git a/src/lib/cross.h b/src/lib/cross.h index c853e8537..1fe34edbe 100644 --- a/src/lib/cross.h +++ b/src/lib/cross.h @@ -30,7 +30,6 @@ extern std::string cpu_info (); extern void run_ffprobe (boost::filesystem::path, boost::filesystem::path, boost::shared_ptr<Log>); extern std::list<std::pair<std::string, std::string> > mount_info (); extern boost::filesystem::path openssl_path (); -extern std::list<std::string> network_interfaces (); #ifdef DCPOMATIC_OSX extern boost::filesystem::path app_contents (); #endif |
