Browse Source

MT#63317 remove unused hash table

Not needed as it turns out

Change-Id: I5236d32b6a0a6c0d51e3e0e9445dd5efeca73536
rfuchs/dtls-ice
Richard Fuchs 3 months ago
parent
commit
44deb79faa
3 changed files with 0 additions and 7 deletions
  1. +0
    -5
      daemon/call.c
  2. +0
    -1
      include/call.h
  3. +0
    -1
      include/media_socket.h

+ 0
- 5
daemon/call.c View File

@ -696,7 +696,6 @@ struct call_media *call_media_new(call_t *call) {
ssrc_hash_call_init(&med->ssrc_hash_in);
ssrc_hash_call_init(&med->ssrc_hash_out);
med->extmap_ht = extmap_ht_new();
med->ext_name_ht = ext_name_ht_new();
med->extmap_ops = &extmap_ops_short;
return med;
}
@ -2894,7 +2893,6 @@ static void media_reset_extmap(struct call_media *media,
// shortcut, reset everything
t_queue_clear_full(&media->extmap, rtp_extension_free);
t_hash_table_remove_all(media->ext_name_ht);
t_hash_table_remove_all(media->extmap_ht);
return;
@ -2920,7 +2918,6 @@ static void media_reset_extmap(struct call_media *media,
}
// remove from tables
t_hash_table_remove(media->ext_name_ht, &ext->name);
t_hash_table_remove(media->extmap_ht, GUINT_TO_POINTER(ext->id));
if (ext->id > 0 && ext->id <= 14)
@ -2939,7 +2936,6 @@ __attribute__((nonnull(1, 2)))
static void media_init_extmap(struct call_media *media, struct rtp_extension *ext) {
ext->name = call_str_cpy(&ext->name);
t_hash_table_insert(media->ext_name_ht, &ext->name, ext);
t_hash_table_insert(media->extmap_ht, GUINT_TO_POINTER(ext->id), ext);
ext->handler = rtp_extension_get_handler(&ext->name);
@ -4838,7 +4834,6 @@ void call_media_free(struct call_media **mdp) {
ssrc_hash_destroy(&md->ssrc_hash_in);
ssrc_hash_destroy(&md->ssrc_hash_out);
t_hash_table_destroy(md->extmap_ht);
t_hash_table_destroy(md->ext_name_ht);
t_queue_clear_full(&md->extmap, rtp_extension_free);
t_hash_table_destroy_ptr(&md->pt_media);
g_free(md);


+ 0
- 1
include/call.h View File

@ -507,7 +507,6 @@ struct call_media {
struct rtp_extension *extmap_id[RTP_EXT_NUM];
extmap_ht extmap_ht;
const struct extmap_ops *extmap_ops;
ext_name_ht ext_name_ht;
str media_id;
str label;


+ 0
- 1
include/media_socket.h View File

@ -351,7 +351,6 @@ static inline void rtp_ext_data_free(struct rtp_extension_data *r) {
TYPED_GQUEUE(extmap, struct rtp_extension);
TYPED_GHASHTABLE(extmap_ht, void, struct rtp_extension, g_direct_hash, g_direct_equal, NULL, NULL);
TYPED_GHASHTABLE(ext_name_ht, str, struct rtp_extension, str_hash, str_equal, NULL, NULL);
size_t extmap_length_short(const struct media_packet *);
void extmap_header_short(void *);


Loading…
Cancel
Save