summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorattilamolnar <attilamolnar@hush.com>2013-06-02 19:58:23 +0200
committerattilamolnar <attilamolnar@hush.com>2013-06-04 02:06:50 +0200
commit8e8a4df17e2897b2b2e0f2ba98bf068c5b0961d1 (patch)
tree70c95933692dee728eff7a7f6c928ce19033b294
parent2ac7d154d9dadbc3d836434b786aa0e8c1660381 (diff)
Remove the now unused Channel::RemoveAllPrefixes() and CountInvisible()
-rw-r--r--include/channels.h12
-rw-r--r--src/channels.cpp25
2 files changed, 0 insertions, 37 deletions
diff --git a/include/channels.h b/include/channels.h
index d1531609a..2aff3f7a8 100644
--- a/include/channels.h
+++ b/include/channels.h
@@ -305,11 +305,6 @@ class CoreExport Channel : public Extensible, public InviteBase
*/
void UserList(User *user);
- /** Get the number of invisible users on this channel
- * @return Number of invisible users
- */
- int CountInvisible();
-
/** Get a users prefix on this channel in a string.
* @param user The user to look up
* @return A character array containing the prefix string.
@@ -344,13 +339,6 @@ class CoreExport Channel : public Extensible, public InviteBase
*/
unsigned int GetPrefixValue(User* user);
- /** This method removes all prefix characters from a user.
- * It will not inform the user or the channel of the removal of prefixes,
- * and should be used when the user parts or quits.
- * @param user The user to remove all prefixes from
- */
- void RemoveAllPrefixes(User* user);
-
/** Add a prefix character to a user.
* Only the core should call this method, usually from
* within the mode parser or when the first user joins
diff --git a/src/channels.cpp b/src/channels.cpp
index 2b347a69e..e39a7fcc6 100644
--- a/src/channels.cpp
+++ b/src/channels.cpp
@@ -653,22 +653,6 @@ void Channel::WriteAllExceptSender(User* user, bool serversource, char status, c
this->WriteAllExcept(user, serversource, status, except_list, std::string(text));
}
-/*
- * return a count of the users on a specific channel accounting for
- * invisible users who won't increase the count. e.g. for /LIST
- */
-int Channel::CountInvisible()
-{
- int count = 0;
- for (UserMembIter i = userlist.begin(); i != userlist.end(); i++)
- {
- if (!i->first->quitting && !i->first->IsModeSet('i'))
- count++;
- }
-
- return count;
-}
-
const char* Channel::ChanModes(bool showkey)
{
static std::string scratch;
@@ -877,15 +861,6 @@ bool Channel::SetPrefix(User* user, char prefix, bool adding)
return adding;
}
-void Channel::RemoveAllPrefixes(User* user)
-{
- UserMembIter m = userlist.find(user);
- if (m != userlist.end())
- {
- m->second->modes.clear();
- }
-}
-
void Invitation::Create(Channel* c, LocalUser* u, time_t timeout)
{
if ((timeout != 0) && (ServerInstance->Time() >= timeout))