diff options
Diffstat (limited to 'res/res_xmpp.c')
-rw-r--r-- | res/res_xmpp.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/res/res_xmpp.c b/res/res_xmpp.c index 3be8aa458..1a3ccd3a6 100644 --- a/res/res_xmpp.c +++ b/res/res_xmpp.c @@ -59,7 +59,6 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$") #include "asterisk/app.h" #include "asterisk/message.h" #include "asterisk/manager.h" -#include "asterisk/event.h" #include "asterisk/cli.h" #include "asterisk/config_options.h" @@ -1455,7 +1454,6 @@ static int xmpp_pubsub_handle_event(void *data, ikspak *pak) int oldmsgs, newmsgs; iks *item, *item_content; struct ast_eid pubsub_eid; - struct ast_event *event; unsigned int cachable = AST_DEVSTATE_CACHABLE; item = iks_find(iks_find(iks_find(pak->x, "event"), "items"), "item"); if (!item) { @@ -1493,12 +1491,6 @@ static int xmpp_pubsub_handle_event(void *data, ikspak *pak) return IKS_FILTER_EAT; } - if (cachable == AST_DEVSTATE_CACHABLE) { - ast_event_queue_and_cache(event); - } else { - ast_event_queue(event); - } - return IKS_FILTER_EAT; } |