diff options
| author | 2013-06-02 19:58:23 +0200 | |
|---|---|---|
| committer | 2013-06-04 02:06:50 +0200 | |
| commit | 8e8a4df17e2897b2b2e0f2ba98bf068c5b0961d1 (patch) | |
| tree | 70c95933692dee728eff7a7f6c928ce19033b294 /src/channels.cpp | |
| parent | Reduce User* -> Membership* lookups on part and kick (diff) | |
| download | inspircd++-8e8a4df17e2897b2b2e0f2ba98bf068c5b0961d1.tar.gz inspircd++-8e8a4df17e2897b2b2e0f2ba98bf068c5b0961d1.tar.bz2 inspircd++-8e8a4df17e2897b2b2e0f2ba98bf068c5b0961d1.zip | |
Remove the now unused Channel::RemoveAllPrefixes() and CountInvisible()
Diffstat (limited to 'src/channels.cpp')
| -rw-r--r-- | src/channels.cpp | 25 |
1 files changed, 0 insertions, 25 deletions
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)) |
