From 6087e877f3a997f90e79e8ee41ea5d92b3762af5 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sat, 28 Dec 2019 19:02:04 +0100 Subject: Get rid of UserManager#OperCount and UserManager#UserCount. OperCount was only used in one place, UserCount is used nowhere, and both just a wrapper around data which is accessible by other means. --- include/usermanager.h | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'include') diff --git a/include/usermanager.h b/include/usermanager.h index bda30d1b1..13fa905ee 100644 --- a/include/usermanager.h +++ b/include/usermanager.h @@ -142,21 +142,11 @@ class CoreExport UserManager */ const CloneMap& GetCloneMap() const { return clonemap; } - /** Return a count of all global users, unknown and known connections - * @return The number of users on the network, including local unregistered users - */ - unsigned int UserCount() const { return this->clientlist.size(); } - /** Return a count of fully registered connections on the network * @return The number of registered users on the network */ unsigned int RegisteredUserCount() { return this->clientlist.size() - this->UnregisteredUserCount(); } - /** Return a count of opered (umode +o) users on the network - * @return The number of opers on the network - */ - unsigned int OperCount() const { return this->all_opers.size(); } - /** Return a count of local unregistered (before NICK/USER) users * @return The number of local unregistered (unknown) connections */ -- cgit v1.3.1-10-gc9f91