From 8e8a4df17e2897b2b2e0f2ba98bf068c5b0961d1 Mon Sep 17 00:00:00 2001 From: attilamolnar Date: Sun, 2 Jun 2013 19:58:23 +0200 Subject: Remove the now unused Channel::RemoveAllPrefixes() and CountInvisible() --- src/channels.cpp | 25 ------------------------- 1 file changed, 25 deletions(-) (limited to 'src/channels.cpp') 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)) -- cgit v1.3.1-10-gc9f91