Remove apparently not-required network_interfaces().
authorCarl Hetherington <cth@carlh.net>
Tue, 5 Nov 2013 23:32:09 +0000 (23:32 +0000)
committerCarl Hetherington <cth@carlh.net>
Tue, 5 Nov 2013 23:32:09 +0000 (23:32 +0000)
src/lib/cross.cc
src/lib/cross.h

index 45c38da2bbc2aedea59bc8b2103f0693f0685c04..41051ee2edf3f9fcacc8d0e59e11d1ba8cd0a745 100644 (file)
@@ -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;
-}
index c853e85375df02ef93f4e8cfa819ed7a9bf15014..1fe34edbe0760d9e86f00c47a6689c61acf073a0 100644 (file)
@@ -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