Skip to content

Commit

Permalink
tm: remove dead code
Browse files Browse the repository at this point in the history
(cherry picked from commit 3d24997)
  • Loading branch information
gaaf committed Nov 10, 2014
1 parent 50c60c5 commit 0c7df3a
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions modules/tm/t_reply.c
Expand Up @@ -764,10 +764,8 @@ static int _reply( struct cell *trans, struct sip_msg* p_msg,
char * buf, *dset;
struct bookmark bm;
int dset_len;
struct lump_rpl* rpl_l;
str reason;

rpl_l=0;
if (code>=200) set_kr(REQ_RPLD);
/* compute the buffer in private memory prior to entering lock;
* create to-tag if needed */
Expand All @@ -788,19 +786,11 @@ static int _reply( struct cell *trans, struct sip_msg* p_msg,
calc_crc_suffix( p_msg, tm_tag_suffix );
buf = build_res_buf_from_sip_req(code, &reason, &tm_tag, p_msg,
&len, &bm);
if (unlikely(rpl_l)){
unlink_lump_rpl(p_msg, rpl_l);
free_lump_rpl(rpl_l);
}
return _reply_light( trans, buf, len, code,
tm_tag.s, TOTAG_VALUE_LEN, lock, &bm);
} else {
buf = build_res_buf_from_sip_req(code, &reason, 0 /*no to-tag*/,
p_msg, &len, &bm);
if (unlikely(rpl_l)){
unlink_lump_rpl(p_msg, rpl_l);
free_lump_rpl(rpl_l);
}
return _reply_light(trans,buf,len,code,
0, 0, /* no to-tag */lock, &bm);
}
Expand Down

0 comments on commit 0c7df3a

Please sign in to comment.