From ec500bdc6b1311fe5cf8cc16a4720aaa51ec39c7 Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Wed, 2 Oct 2024 07:37:19 -0400 Subject: [PATCH] MT#60476 obsolete last_in_sdp(_parsed) Not needed any more. All strings reside in the call's memory arena, and SDP rewriting isn't a thing any more. Change-Id: I594b85fe26f44fa25312eb97fb65de238fc18920 --- daemon/call.c | 1 - daemon/call_interfaces.c | 6 ------ include/call.h | 2 -- 3 files changed, 9 deletions(-) diff --git a/daemon/call.c b/daemon/call.c index e117adfa2..46e735ae7 100644 --- a/daemon/call.c +++ b/daemon/call.c @@ -4046,7 +4046,6 @@ void __monologue_free(struct call_monologue *m) { sdp_orig_free(m->session_sdp_orig); if (m->session_last_sdp_orig) sdp_orig_free(m->session_last_sdp_orig); - sdp_sessions_clear(&m->last_in_sdp_parsed); t_queue_clear_full(&m->generic_attributes, sdp_attr_free); t_queue_clear_full(&m->all_attributes, sdp_attr_free); sdp_streams_clear(&m->last_in_sdp_streams); diff --git a/daemon/call_interfaces.c b/daemon/call_interfaces.c index 74bdb3700..6f3d49ef5 100644 --- a/daemon/call_interfaces.c +++ b/daemon/call_interfaces.c @@ -2104,12 +2104,6 @@ static enum load_limit_reasons call_offer_session_limit(void) { void save_last_sdp(struct call_monologue *ml, str *sdp, sdp_sessions_q *parsed, sdp_streams_q *streams) { - ml->last_in_sdp = *sdp; - - sdp_sessions_clear(&ml->last_in_sdp_parsed); - ml->last_in_sdp_parsed = *parsed; - t_queue_init(parsed); - sdp_streams_clear(&ml->last_in_sdp_streams); ml->last_in_sdp_streams = *streams; t_queue_init(streams); diff --git a/include/call.h b/include/call.h index 1b369faa3..0a2395735 100644 --- a/include/call.h +++ b/include/call.h @@ -591,8 +591,6 @@ struct call_monologue { struct media_player *player; struct media_player *rec_player; struct session_bandwidth sdp_session_bandwidth; - str last_in_sdp; - sdp_sessions_q last_in_sdp_parsed; /* last parsed `sdp_session` */ sdp_streams_q last_in_sdp_streams; /* last parsed `stream_params` */ GString *last_out_sdp;