summaryrefslogtreecommitdiff
path: root/src/hashcomp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/hashcomp.cpp')
-rw-r--r--src/hashcomp.cpp23
1 files changed, 0 insertions, 23 deletions
diff --git a/src/hashcomp.cpp b/src/hashcomp.cpp
index 55b3f9b58..f8d131675 100644
--- a/src/hashcomp.cpp
+++ b/src/hashcomp.cpp
@@ -39,10 +39,6 @@
* Scandanavian Comparisons: The characters [, ], \ will
* be considered the lowercase of {, } and |.
*
- * This file also contains hashing methods for hashing
- * insp_inaddr structs, we use this if we want to cache IP
- * addresses.
- *
******************************************************/
using namespace irc::sockets;
@@ -65,13 +61,6 @@ void nspace::strlower(char *n)
}
}
-size_t nspace::hash<insp_inaddr>::operator()(const insp_inaddr &a) const
-{
- size_t q;
- memcpy(&q,&a,sizeof(size_t));
- return q;
-}
-
size_t nspace::hash<string>::operator()(const string &s) const
{
/* XXX: NO DATA COPIES! :)
@@ -104,18 +93,6 @@ bool irc::StrHashComp::operator()(const std::string& s1, const std::string& s2)
return (lowermap[*n1] == lowermap[*n2]);
}
-bool irc::InAddr_HashComp::operator()(const insp_inaddr &s1, const insp_inaddr &s2) const
-{
-#ifdef IPV6
- for (int n = 0; n < 16; n++)
- if (s2.s6_addr[n] != s1.s6_addr[n])
- return false;
- return true;
-#else
- return (s1.s_addr == s1.s_addr);
-#endif
-}
-
/******************************************************
*
* This is the implementation of our special irc::string