Remove the unused (and deceptively named) get_sockhost().
[ircu2.10.12-pk.git] / ircd / s_misc.c
index 96dd2d09b40968f9195a368da1263ec14dbc12a6..e0be99b7d04b70cc9f691ef45ff28fcf74258ac7 100644 (file)
@@ -172,22 +172,6 @@ const char* get_client_name(const struct Client* sptr, int showip)
   return nbuf;
 }
 
-/** Set cli_sockhost(cptr) from \a host.
- * If \a host contains an '@', copy starting after that byte.
- * Otherwise copy all of \a host.
- * @param cptr Client to operate on.
- * @param host hostname or user\@hostname string.
- */
-void get_sockhost(struct Client *cptr, char *host)
-{
-  char *s;
-  if ((s = strchr(host, '@')))
-    s++;
-  else
-    s = host;
-  ircd_strncpy(cli_sockhost(cptr), s, HOSTLEN);
-}
-
 /**
  * Exit one client, local or remote. Assuming for local client that
  * all dependents already have been removed, and socket is closed.