From 73c1e09269d73d9e74724ff4cb74407b78776379 Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Fri, 16 May 2014 19:09:18 +0000 Subject: [PATCH] CID:1024579 Logically dead code --- src/mod/applications/mod_commands/mod_commands.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/mod/applications/mod_commands/mod_commands.c b/src/mod/applications/mod_commands/mod_commands.c index b4d72d95c7..3acbca5b61 100644 --- a/src/mod/applications/mod_commands/mod_commands.c +++ b/src/mod/applications/mod_commands/mod_commands.c @@ -1616,7 +1616,6 @@ SWITCH_STANDARD_API(xml_locate_function) switch_event_t *params = NULL; char *xmlstr; char delim = ' '; - char *host = NULL; const char *err = NULL; stream_format format = { 0 }; @@ -1677,11 +1676,7 @@ SWITCH_STANDARD_API(xml_locate_function) end: if (err) { - if (host) { - stream->write_function(stream, "%s\n", err); - } else { - stream->write_function(stream, "-ERR %s\n", err); - } + stream->write_function(stream, "-ERR %s\n", err); } if (obj) {