[svn-commits] rmudgett: branch rmudgett/iax_fracks r419911 - in /team/rmudgett/iax_fracks/c...
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Fri Aug 1 19:07:57 CDT 2014
Author: rmudgett
Date: Fri Aug 1 19:07:54 2014
New Revision: 419911
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=419911
Log:
Remove some more dead code.
Modified:
team/rmudgett/iax_fracks/channels/iax2/codec_pref.c
team/rmudgett/iax_fracks/channels/iax2/include/codec_pref.h
Modified: team/rmudgett/iax_fracks/channels/iax2/codec_pref.c
URL: http://svnview.digium.com/svn/asterisk/team/rmudgett/iax_fracks/channels/iax2/codec_pref.c?view=diff&rev=419911&r1=419910&r2=419911
==============================================================================
--- team/rmudgett/iax_fracks/channels/iax2/codec_pref.c (original)
+++ team/rmudgett/iax_fracks/channels/iax2/codec_pref.c Fri Aug 1 19:07:54 2014
@@ -88,26 +88,6 @@
}
return *result;
-}
-
-void iax2_codec_pref_to_cap(struct iax2_codec_pref *pref, struct ast_format_cap *cap)
-{
- int idx;
-
- for (idx = 0; idx < ARRAY_LEN(pref->order); ++idx) {
- uint64_t pref_bitfield;
- struct ast_format *pref_format;
-
- if (!pref->order[idx]) {
- break;
- }
-
- pref_bitfield = iax2_codec_pref_order_value_to_format_bitfield(pref->order[idx]);
- pref_format = ast_format_compatibility_bitfield2format(pref_bitfield);
- if (pref_format) {
- ast_format_cap_append(cap, pref_format, pref->framing[idx]);
- }
- }
}
int iax2_codec_pref_best_bitfield2cap(uint64_t bitfield, struct iax2_codec_pref *prefs, struct ast_format_cap *cap)
Modified: team/rmudgett/iax_fracks/channels/iax2/include/codec_pref.h
URL: http://svnview.digium.com/svn/asterisk/team/rmudgett/iax_fracks/channels/iax2/include/codec_pref.h?view=diff&rev=419911&r1=419910&r2=419911
==============================================================================
--- team/rmudgett/iax_fracks/channels/iax2/include/codec_pref.h (original)
+++ team/rmudgett/iax_fracks/channels/iax2/include/codec_pref.h Fri Aug 1 19:07:54 2014
@@ -70,9 +70,6 @@
*/
struct ast_format *iax2_codec_pref_index(struct iax2_codec_pref *pref, int index, struct ast_format **result);
-/*! \brief Convert a preference structure to a capabilities structure */
-void iax2_codec_pref_to_cap(struct iax2_codec_pref *pref, struct ast_format_cap *cap);
-
/*!
* \brief Convert a bitfield to a format capabilities structure in the "best" order.
*
More information about the svn-commits
mailing list