From ff98b83f6f907c6239b295d019960d054db4cc24 Mon Sep 17 00:00:00 2001 From: Donat Zenichev Date: Thu, 21 Mar 2024 16:58:19 +0100 Subject: [PATCH] MT#58535 rtpp_flags: remove unused `flags` bencode list item Since the generic flags parsing is done (from now on) directly in the `parse_rtpp_flags()`, there is no need to keep a separate bencode list object to store them, which was originally intended to be used later for parsing in `call_ng_flags_flags()`, but not the case anymore. Change-Id: I7898e29cabecfd6e8429c064d7b5904d94c50513 --- daemon/control_ng_flags_parser.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/daemon/control_ng_flags_parser.c b/daemon/control_ng_flags_parser.c index 1a1d189b1..4e505260e 100644 --- a/daemon/control_ng_flags_parser.c +++ b/daemon/control_ng_flags_parser.c @@ -261,7 +261,7 @@ void parse_rtpp_flags(const str * rtpp_flags, bencode_item_t * root_dict, { char * start, * end, * eptr, c; str key, val, s; - bencode_item_t * codec, * direction, * flags; + bencode_item_t * codec, * direction; bencode_buffer_t * buf; unsigned int transport = 0; @@ -278,7 +278,6 @@ void parse_rtpp_flags(const str * rtpp_flags, bencode_item_t * root_dict, codec = bencode_dictionary(buf); direction = bencode_list(buf); - flags = bencode_list(buf); while (start < end) { @@ -478,9 +477,5 @@ next: if (direction && direction->child) bencode_dictionary_add(root_dict, "direction", direction); - /* add one-key flags to the root dict */ - if (flags && flags->child) - bencode_dictionary_add(root_dict, "flags", flags); - rtpp_flags->s[rtpp_flags->len] = c; }