From 3cd1a24a51b9560a6dd6590b4a384f6b6942370d Mon Sep 17 00:00:00 2001 From: danieldg Date: Sat, 9 Jan 2010 17:48:40 +0000 Subject: Remove mode counter, not reliable and only used for umode +i git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12246 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/mode.h | 10 ---------- include/modes/umode_i.h | 1 - include/modes/umode_o.h | 1 - include/modes/umode_w.h | 1 - include/users.h | 5 ----- 5 files changed, 18 deletions(-) (limited to 'include') diff --git a/include/mode.h b/include/mode.h index ce9d2ee2b..31d092207 100644 --- a/include/mode.h +++ b/include/mode.h @@ -135,10 +135,6 @@ class CoreExport ModeHandler : public ServiceProvider */ ModeType m_type; - /** Number of items with this mode set on them - */ - unsigned int count; - /** The prefix char needed on channel to use this mode, * only checked for channel modes */ @@ -167,12 +163,6 @@ class CoreExport ModeHandler : public ServiceProvider * value for this mode prefix. */ inline char GetPrefix() const { return prefix; } - /** Get number of items with this mode set on them - */ - virtual unsigned int GetCount(); - /** Adjust usage count returned by GetCount - */ - virtual void ChangeCount(int modifier); /** * Get the 'value' of this modes prefix. * determines which to display when there are multiple. diff --git a/include/modes/umode_i.h b/include/modes/umode_i.h index 58ec2d4ca..062126779 100644 --- a/include/modes/umode_i.h +++ b/include/modes/umode_i.h @@ -21,5 +21,4 @@ class ModeUserInvisible : public SimpleUserModeHandler { public: ModeUserInvisible(); - unsigned int GetCount(); }; diff --git a/include/modes/umode_o.h b/include/modes/umode_o.h index a58c55670..f47280d09 100644 --- a/include/modes/umode_o.h +++ b/include/modes/umode_o.h @@ -22,5 +22,4 @@ class ModeUserOperator : public ModeHandler public: ModeUserOperator(); ModeAction OnModeChange(User* source, User* dest, Channel* channel, std::string ¶meter, bool adding); - unsigned int GetCount(); }; diff --git a/include/modes/umode_w.h b/include/modes/umode_w.h index ddda3db83..503c9ddc8 100644 --- a/include/modes/umode_w.h +++ b/include/modes/umode_w.h @@ -21,5 +21,4 @@ class ModeUserWallops : public SimpleUserModeHandler { public: ModeUserWallops(); - unsigned int GetCount(); }; diff --git a/include/users.h b/include/users.h index e1171e2c3..637f8f88e 100644 --- a/include/users.h +++ b/include/users.h @@ -247,11 +247,6 @@ class CoreExport User : public Extensible */ std::string cachedip; - /** When we erase the user (in the destructor), - * we call this method to subtract one from all - * mode characters this user is making use of. - */ - void DecrementModes(); public: /** Hostname of connection. -- cgit v1.2.3