From 30d6c7182635e27ff4b65e6d61ff9cf838a269f5 Mon Sep 17 00:00:00 2001 From: Evangelos Ribeiro Tzaras Date: Tue, 1 Mar 2022 17:14:03 +0100 Subject: [PATCH] sip: media-manager: Remove unused code It has outlived its usefulness since 7d113d4180c70de174451583a8aaa56216f280be Also PCMA was never the "best" codec to begin with. --- plugins/sip/calls-sip-media-manager.c | 7 ------- plugins/sip/calls-sip-media-manager.h | 1 - 2 files changed, 8 deletions(-) diff --git a/plugins/sip/calls-sip-media-manager.c b/plugins/sip/calls-sip-media-manager.c index 7f0938d..f8e8154 100644 --- a/plugins/sip/calls-sip-media-manager.c +++ b/plugins/sip/calls-sip-media-manager.c @@ -288,13 +288,6 @@ calls_sip_media_manager_static_capabilities (CallsSipMediaManager *self, } -MediaCodecInfo* -get_best_codec (CallsSipMediaManager *self) -{ - return media_codec_by_name ("PCMA"); -} - - /* calls_sip_media_manager_codec_candiates: * * @self: A #CallsSipMediaManager diff --git a/plugins/sip/calls-sip-media-manager.h b/plugins/sip/calls-sip-media-manager.h index 854ba6c..a8316d8 100644 --- a/plugins/sip/calls-sip-media-manager.h +++ b/plugins/sip/calls-sip-media-manager.h @@ -48,7 +48,6 @@ gchar* calls_sip_media_manager_static_capabilities (Cal gboolean use_srtp); gboolean calls_sip_media_manager_supports_media (CallsSipMediaManager *self, const char *media_type); -MediaCodecInfo* get_best_codec (CallsSipMediaManager *self); GList * calls_sip_media_manager_codec_candidates (CallsSipMediaManager *self); GList * calls_sip_media_manager_get_codecs_from_sdp (CallsSipMediaManager *self, sdp_media_t *sdp_media);