From 27e0df3719ce1d6153f8f332d23631044b3c9a79 Mon Sep 17 00:00:00 2001 From: w00t Date: Mon, 16 Feb 2009 22:14:36 +0000 Subject: 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 --- include/modules.h | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) (limited to 'include/modules.h') 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 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(). -- cgit v1.2.3