diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2012-01-08 16:47:52 +0100 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2012-01-08 16:47:52 +0100 |
commit | 1ecdd9f6b53fec45e1d48592e3ff56aa7a576bec (patch) | |
tree | 8d9e42cb670a24b4a9adb439cfc15c4277a61716 /module/HookManager.py | |
parent | new MultiHoster hook (diff) | |
download | pyload-1ecdd9f6b53fec45e1d48592e3ff56aa7a576bec.tar.xz |
some cleanups, closed #490
Diffstat (limited to 'module/HookManager.py')
-rw-r--r-- | module/HookManager.py | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/module/HookManager.py b/module/HookManager.py index 3691fe3ed..8afd6fe26 100644 --- a/module/HookManager.py +++ b/module/HookManager.py @@ -28,9 +28,6 @@ from module.threads.HookThread import HookThread from module.plugins.PluginManager import literal_eval from utils import lock, to_string -def class_name(p): - return p.rpartition(".")[2] - class HookManager: """ Manages hooks, loading, unloading. """ @@ -71,7 +68,6 @@ class HookManager: print_exc() def addRPC(self, plugin, func, doc): - plugin = class_name(plugin) doc = doc.strip() if doc else "" if plugin in self.methods: @@ -225,7 +221,6 @@ class HookManager: return info def addEventListener(self, plugin, func, event): - plugin = class_name(plugin) if plugin not in self.events: self.events[plugin] = [] self.events[plugin].append((func, event)) |