]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
remove unused var ocp
authorMichael Jerris <mike@jerris.com>
Mon, 28 Apr 2014 20:06:39 +0000 (16:06 -0400)
committerMichael Jerris <mike@jerris.com>
Mon, 28 Apr 2014 20:06:39 +0000 (16:06 -0400)
src/switch_channel.c

index 421a1416a041a4da9c8fd9cb4f2ca21c49e717ee..d1b04d4bde310f62a492b49af302ec8370716c0f 100644 (file)
@@ -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));