From a044b3b64bb1fb0a5769350c746191ad7710b7e9 Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Mon, 28 Apr 2014 16:06:39 -0400 Subject: [PATCH] remove unused var ocp --- src/switch_channel.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/switch_channel.c b/src/switch_channel.c index 421a1416a0..d1b04d4bde 100644 --- a/src/switch_channel.c +++ b/src/switch_channel.c @@ -4215,7 +4215,7 @@ SWITCH_DECLARE(switch_status_t) switch_channel_set_timestamps(switch_channel_t * { switch_status_t status = SWITCH_STATUS_SUCCESS; const char *cid_buf = NULL; - switch_caller_profile_t *caller_profile, *ocp; + switch_caller_profile_t *caller_profile; switch_app_log_t *app_log, *ap; char *last_app = NULL, *last_arg = NULL; char start[80] = "", resurrect[80] = "", answer[80] = "", hold[80], @@ -4252,10 +4252,6 @@ SWITCH_DECLARE(switch_status_t) switch_channel_set_timestamps(switch_channel_t * last_arg = ap->arg; } - if (!(ocp = switch_channel_get_originatee_caller_profile(channel))) { - ocp = switch_channel_get_originator_caller_profile(channel); - } - if (!zstr(caller_profile->caller_id_name)) { cid_buf = switch_core_session_sprintf(channel->session, "\"%s\" <%s>", caller_profile->caller_id_name, switch_str_nil(caller_profile->caller_id_number));