From: Andre Noll Date: Wed, 16 Mar 2011 19:26:27 +0000 (+0100) Subject: audiod: Remove unused num_filters(). X-Git-Tag: v0.4.6~15 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=5613d9bd0624fae15a1923a6590fa10761d93340;p=paraslash.git audiod: Remove unused num_filters(). This function has no callers. Also, get_audio_format_num() is only called from functions in audiod.c, so make this function static. --- diff --git a/audiod.c b/audiod.c index 8b17d95f..e66373cc 100644 --- a/audiod.c +++ b/audiod.c @@ -167,7 +167,7 @@ struct command_task { * \return The audio format number on success, -E_UNSUPPORTED_AUDIO_FORMAT if * \a name is not a supported audio format. */ -int get_audio_format_num(const char *name) +static int get_audio_format_num(const char *name) { int i; @@ -469,20 +469,6 @@ static int get_empty_slot(void) return -E_NO_MORE_SLOTS; } -/** - * get the number of filters - * - * \param audio_format_num the number identifying the audio format - * - * \return the number of filters for the given audio format - * - * \sa struct filter; - */ -int num_filters(int audio_format_num) -{ - return afi[audio_format_num].num_filters; -} - static void open_filters(struct slot_info *s) { struct audio_format_info *a = afi + s->format; diff --git a/audiod.h b/audiod.h index 94399602..4c321222 100644 --- a/audiod.h +++ b/audiod.h @@ -7,9 +7,6 @@ /** \file audiod.h symbols exported from audiod.c */ -int num_filters(int audio_format_num); -int get_audio_format_num(const char *name); - /** enum of audio formats supported by para_audiod */ enum {AUDIOD_AUDIO_FORMATS_ENUM};