diff options
author | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-02-16 22:14:36 +0000 |
---|---|---|
committer | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-02-16 22:14:36 +0000 |
commit | 27e0df3719ce1d6153f8f332d23631044b3c9a79 (patch) | |
tree | 5befa8ebb123b05752891bad7d12f35795a04fe2 /include/modules.h | |
parent | 3cfd26c7a2ef57e979d0f065ebed01d9bf26aa03 (diff) |
Remove redundant PriorityState, enum Priority does the exact same thing.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11121 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include/modules.h')
-rw-r--r-- | include/modules.h | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/include/modules.h b/include/modules.h index 64eb3cfd1..536313d8f 100644 --- a/include/modules.h +++ b/include/modules.h @@ -1602,17 +1602,6 @@ typedef std::vector<Module*> IntModuleList; */ typedef IntModuleList::iterator EventHandlerIter; -/** Module priority states - */ -enum PriorityState -{ - PRIO_DONTCARE, - PRIO_FIRST, - PRIO_LAST, - PRIO_AFTER, - PRIO_BEFORE -}; - /** ModuleManager takes care of all things module-related * in the core. */ @@ -1680,7 +1669,7 @@ class CoreExport ModuleManager : public classbase * Defaults to 1, as most of the time you will only want to prioritize your module * to be before or after one other module. */ - bool SetPriority(Module* mod, Implementation i, PriorityState s, Module** modules = NULL, size_t sz = 1); + bool SetPriority(Module* mod, Implementation i, Priority s, Module** modules = NULL, size_t sz = 1); /** Change the priority of all events in a module. * @param mod The module to set the priority of @@ -1690,7 +1679,7 @@ class CoreExport ModuleManager : public classbase * SetPriority method for this, where you may specify other modules to * be prioritized against. */ - bool SetPriority(Module* mod, PriorityState s); + bool SetPriority(Module* mod, Priority s); /** Attach an event to a module. * You may later detatch the event with ModuleManager::Detach(). |