diff --git a/consumer.py b/consumer.py index 0efe37b..3839e72 100644 --- a/consumer.py +++ b/consumer.py @@ -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) diff --git a/response.py b/response.py index b9c30c0..3df4fc1 100644 --- a/response.py +++ b/response.py @@ -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