summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authordanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2010-01-09 17:48:40 +0000
committerdanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2010-01-09 17:48:40 +0000
commit3cd1a24a51b9560a6dd6590b4a384f6b6942370d (patch)
tree5d412748be07a9cba449587e6ac659862c761fe3 /include
parentdd2ace5916a8bb24801e74aa8b209d396e012d9b (diff)
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
Diffstat (limited to 'include')
-rw-r--r--include/mode.h10
-rw-r--r--include/modes/umode_i.h1
-rw-r--r--include/modes/umode_o.h1
-rw-r--r--include/modes/umode_w.h1
-rw-r--r--include/users.h5
5 files changed, 0 insertions, 18 deletions
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 &parameter, 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.