Remove legacy and never used response.Hook

This commit is contained in:
nemunaire 2014-08-29 11:46:11 +02:00
parent 4b9a6305d4
commit a8fe4c5159
2 changed files with 0 additions and 13 deletions

View File

@ -76,9 +76,6 @@ class MessageConsumer:
if context.treat_post(res):
res.server.send_response(res, self.data)
elif isinstance(res, response.Hook):
context.hooks.add_hook(res.type, res.hook, res.src)
elif res is not None:
logger.error("Unrecognized response type: %s", res)

View File

@ -164,13 +164,3 @@ class Response:
self.elt += len(w) + 1
self.pop()
return msg
import hooks
class Hook:
def __init__(self, TYPE, call, name=None, data=None, regexp=None,
channels=list(), server=None, end=None, call_end=None,
SRC=None):
self.hook = hooks.Hook(call, name, data, regexp, channels,
server, end, call_end)
self.type = TYPE
self.src = SRC