From 65b3cae688ba0855c4bb554df1e7cee07578b80e Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Tue, 4 Mar 2025 07:56:32 -0400 Subject: [PATCH] MT#55283 obsolete c_line_pos Not used any more. Change-Id: I931d2fee94b74ffcb7e79bd373f47d4e86e328ca (cherry picked from commit 7c9c4d2d34073891148de24988bbb72cdd28fdd5) --- daemon/sdp.c | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/daemon/sdp.c b/daemon/sdp.c index 0f34fc8e2..3d2ec9b38 100644 --- a/daemon/sdp.c +++ b/daemon/sdp.c @@ -122,7 +122,6 @@ struct sdp_media { int port_count; struct sdp_connection connection; - const char *c_line_pos; // XXX to be obsoleted struct session_bandwidth bandwidth; struct sdp_attributes attributes; str_slice_q format_list; /* list of slice-alloc'd str objects */ @@ -1285,10 +1284,6 @@ new_session: break; case 'm': - if (media && !media->c_line_pos) - media->c_line_pos = full_line.s; - - media = g_slice_alloc0(sizeof(*media)); media->session = session; attrs_init(&media->attributes); @@ -1310,9 +1305,6 @@ new_session: break; case 'a': - if (media && !media->c_line_pos) - media->c_line_pos = full_line.s; - attr = g_slice_alloc0(sizeof(*attr)); attr->full_line = full_line; @@ -1329,9 +1321,6 @@ new_session: break; case 'b': - if (media && !media->c_line_pos) - media->c_line_pos = full_line.s; - /* RR:0 */ if (value.len < 4) break; @@ -1355,11 +1344,6 @@ new_session: } break; - case 'k': - if (media && !media->c_line_pos) - media->c_line_pos = full_line.s; - break; - case 's': errstr = "s= line found within media section"; if (media) @@ -1374,6 +1358,7 @@ new_session: session->session_timing = value; break; + case 'k': case 'i': case 'u': case 'e':