summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2013-11-24 15:05:12 +0000
committerPeter Powell <petpow@saberuk.com>2013-12-15 06:46:44 +0000
commit07d0d8f52f361c64b3c16d7e432f475cd2131a28 (patch)
tree9b20aa6e1916a0a7f96cd9c9793be57a48d38cb8 /include
parent02830985a18950497003f3392cf8d6cc30c15c50 (diff)
Remove some pointless code:
- Remove the CHARSET entry from ISUPPORT. CHARSET was removed in draft-brocklesby-irc-isupport-03 and we always used the default value anyway. This has also been removed in the latest version of Charybdis. - Remove irc::sockets::satouser. This helper method was longer than the code it replaced.
Diffstat (limited to 'include')
-rw-r--r--include/socket.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/include/socket.h b/include/socket.h
index 3abbeef32..c54517a76 100644
--- a/include/socket.h
+++ b/include/socket.h
@@ -124,13 +124,6 @@ namespace irc
* @return true if the conversion was successful, false if unknown address family
*/
CoreExport bool satoap(const irc::sockets::sockaddrs& sa, std::string& addr, int &port);
-
- /** Convert a binary sockaddr to a user-readable string.
- * This means IPv6 addresses are written as [::1]:6667, and *:6668 is used for 0.0.0.0:6668
- * @param sa The structure to convert
- * @return The string; "<unknown>" if not a valid address
- */
- inline std::string satouser(const irc::sockets::sockaddrs& sa) { return sa.str(); }
}
}