Permalink
Browse files

remove unused code

  • Loading branch information...
1 parent a0a4969 commit 829c21078ca77bb981a1bc2ccdf9c7609721b2b8 Rob Savoye committed Apr 30, 2012
Showing with 0 additions and 13 deletions.
  1. +0 −13 cygnal/libnet/network.cpp
View
@@ -572,19 +572,6 @@ Network::createClient(const string &hostname, short port)
_port = port;
log_debug(_("%s: to host %s at port %d"), __FUNCTION__, hostname, port);
-#if 0
- // If a hostname isn't supplied, get the localhost name.
- char thishostname[MAXHOSTNAMELEN];
- memset(&thishostname, 0, MAXHOSTNAMELEN);
- if (hostname.size() == 0) {
- if (gethostname(thishostname, MAXHOSTNAMELEN) == 0) {
- log_debug(_("The hostname for this machine is %s"), thishostname);
- } else {
- log_debug(_("Couldn't get the hostname for this machine"));
- return false;
- }
- }
-
int code = 0;
struct addrinfo req, *ans;
std::memset(&req, 0, sizeof(struct addrinfo));

0 comments on commit 829c210

Please sign in to comment.