mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-09 21:14:02 +00:00
mod_dingaling: Remove unused but set variables (GCC-4.6 -Wunused-but-set-variable)
Subject and type event headers were never used in chat_send(), remove them. Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
This commit is contained in:
@@ -496,17 +496,13 @@ static switch_status_t chat_send(switch_event_t *message_event)
|
|||||||
const char *proto;
|
const char *proto;
|
||||||
const char *from;
|
const char *from;
|
||||||
const char *to;
|
const char *to;
|
||||||
const char *subject;
|
|
||||||
const char *body;
|
const char *body;
|
||||||
const char *type;
|
|
||||||
const char *hint;
|
const char *hint;
|
||||||
|
|
||||||
proto = switch_event_get_header(message_event, "proto");
|
proto = switch_event_get_header(message_event, "proto");
|
||||||
from = switch_event_get_header(message_event, "from");
|
from = switch_event_get_header(message_event, "from");
|
||||||
to = switch_event_get_header(message_event, "to");
|
to = switch_event_get_header(message_event, "to");
|
||||||
subject = switch_event_get_header(message_event, "subject");
|
|
||||||
body = switch_event_get_body(message_event);
|
body = switch_event_get_body(message_event);
|
||||||
type = switch_event_get_header(message_event, "type");
|
|
||||||
hint = switch_event_get_header(message_event, "hint");
|
hint = switch_event_get_header(message_event, "hint");
|
||||||
|
|
||||||
switch_assert(proto != NULL);
|
switch_assert(proto != NULL);
|
||||||
|
|||||||
Reference in New Issue
Block a user