summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorattilamolnar <attilamolnar@hush.com>2013-04-13 17:43:37 +0200
committerattilamolnar <attilamolnar@hush.com>2013-04-13 17:43:37 +0200
commitf8127cf8c51d7991e4cf809f161701aac5276975 (patch)
tree9e176b3a0d98422a56d53186034e96f6272f788e /src
parent2f17664ea13fe8f0983080d69886a46b58e5e266 (diff)
Remove const char* versions of InspIRCd::FindNick()/FindNickOnly()/FindUUID()/FindChan()
Diffstat (limited to 'src')
-rw-r--r--src/helperfuncs.cpp39
1 files changed, 0 insertions, 39 deletions
diff --git a/src/helperfuncs.cpp b/src/helperfuncs.cpp
index fba76805c..bdc77cc98 100644
--- a/src/helperfuncs.cpp
+++ b/src/helperfuncs.cpp
@@ -66,19 +66,6 @@ User* InspIRCd::FindNick(const std::string &nick)
return iter->second;
}
-User* InspIRCd::FindNick(const char* nick)
-{
- if (isdigit(*nick))
- return FindUUID(nick);
-
- user_hash::iterator iter = this->Users->clientlist->find(nick);
-
- if (iter == this->Users->clientlist->end())
- return NULL;
-
- return iter->second;
-}
-
User* InspIRCd::FindNickOnly(const std::string &nick)
{
user_hash::iterator iter = this->Users->clientlist->find(nick);
@@ -89,16 +76,6 @@ User* InspIRCd::FindNickOnly(const std::string &nick)
return iter->second;
}
-User* InspIRCd::FindNickOnly(const char* nick)
-{
- user_hash::iterator iter = this->Users->clientlist->find(nick);
-
- if (iter == this->Users->clientlist->end())
- return NULL;
-
- return iter->second;
-}
-
User *InspIRCd::FindUUID(const std::string &uid)
{
user_hash::iterator finduuid = this->Users->uuidlist->find(uid);
@@ -108,23 +85,7 @@ User *InspIRCd::FindUUID(const std::string &uid)
return finduuid->second;
}
-
-User *InspIRCd::FindUUID(const char *uid)
-{
- return FindUUID(std::string(uid));
-}
-
/* find a channel record by channel name and return a pointer to it */
-Channel* InspIRCd::FindChan(const char* chan)
-{
- chan_hash::iterator iter = chanlist->find(chan);
-
- if (iter == chanlist->end())
- /* Couldn't find it */
- return NULL;
-
- return iter->second;
-}
Channel* InspIRCd::FindChan(const std::string &chan)
{