summaryrefslogtreecommitdiffstats
path: root/module/HookManager.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2012-01-08 16:47:52 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2012-01-08 16:47:52 +0100
commit1ecdd9f6b53fec45e1d48592e3ff56aa7a576bec (patch)
tree8d9e42cb670a24b4a9adb439cfc15c4277a61716 /module/HookManager.py
parentnew MultiHoster hook (diff)
downloadpyload-1ecdd9f6b53fec45e1d48592e3ff56aa7a576bec.tar.xz
some cleanups, closed #490
Diffstat (limited to 'module/HookManager.py')
-rw-r--r--module/HookManager.py5
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))