diff options
author | Adam <Adam@anope.org> | 2013-03-30 23:38:40 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2013-03-30 23:39:43 -0500 |
commit | 7e7556f06445d4d8e607ef514c9fb5009899db73 (patch) | |
tree | fde8e4e7c59f40183e215cd69ce0d042670b24b9 /include/modules.h | |
parent | 111d6a917806fd3ce2269436d08d68bd7eb1d5ea (diff) |
Merge usefulness of Timer and CallBack classes into Timer, and fix it to really work
Diffstat (limited to 'include/modules.h')
-rw-r--r-- | include/modules.h | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/include/modules.h b/include/modules.h index 53f723898..10b9ed8aa 100644 --- a/include/modules.h +++ b/include/modules.h @@ -195,10 +195,6 @@ class CoreExport Module : public Extensible */ Anope::string filename; - /** Callbacks used in this module - */ - std::list<CallBack *> callbacks; - /** Handle for this module, obtained from dlopen() */ void *handle; @@ -1126,11 +1122,6 @@ class CoreExport ModuleManager */ static void Attach(Implementation *i, Module *mod, size_t sz); - /** Delete all callbacks attached to a module - * @param m The module - */ - static void ClearCallBacks(Module *m); - /** Unloading all modules except the protocol module. */ static void UnloadAll(); @@ -1143,17 +1134,4 @@ class CoreExport ModuleManager static ModuleReturn DeleteModule(Module *m); }; -/** Class used for callbacks within modules. These are identical to Timers hwoever - * they will be cleaned up automatically when a module is unloaded, and Timers will not. - */ -class CoreExport CallBack : public Timer -{ - private: - Module *m; - public: - CallBack(Module *mod, long time_from_now, time_t now = Anope::CurTime, bool repeating = false); - - virtual ~CallBack(); -}; - #endif // MODULES_H |