diff --git a/channels/chan_iax2.c b/channels/chan_iax2.c index 93c56e676c..4a41bf9843 100644 --- a/channels/chan_iax2.c +++ b/channels/chan_iax2.c @@ -2014,11 +2014,6 @@ static struct iax2_user *find_user(const char *name) { return ao2_find(users, name, OBJ_KEY); } -static inline struct iax2_user *user_ref(struct iax2_user *user) -{ - ao2_ref(user, +1); - return user; -} static inline struct iax2_user *user_unref(struct iax2_user *user) { diff --git a/main/config.c b/main/config.c index 4a9d0c1814..daccae535b 100644 --- a/main/config.c +++ b/main/config.c @@ -71,7 +71,7 @@ static char *extconfig_conf = "extconfig.conf"; static struct ao2_container *cfg_hooks; static void config_hook_exec(const char *filename, const char *module, const struct ast_config *cfg); -inline struct ast_variable *variable_list_switch(struct ast_variable *l1, struct ast_variable *l2); +static inline struct ast_variable *variable_list_switch(struct ast_variable *l1, struct ast_variable *l2); static int does_category_match(struct ast_category *cat, const char *category_name, const char *match); /*! \brief Structure to keep comments for rewriting configuration files */ @@ -614,7 +614,7 @@ struct ast_variable *ast_variable_browse(const struct ast_config *config, const return (cat) ? cat->root : NULL; } -inline struct ast_variable *variable_list_switch(struct ast_variable *l1, struct ast_variable *l2) +static inline struct ast_variable *variable_list_switch(struct ast_variable *l1, struct ast_variable *l2) { l1->next = l2->next; l2->next = l1; diff --git a/main/dsp.c b/main/dsp.c index 3a5d1221af..a329dbb6bc 100644 --- a/main/dsp.c +++ b/main/dsp.c @@ -339,16 +339,6 @@ static inline void goertzel_sample(goertzel_state_t *s, short sample) } } -static inline void goertzel_update(goertzel_state_t *s, short *samps, int count) -{ - int i; - - for (i = 0; i < count; i++) { - goertzel_sample(s, samps[i]); - } -} - - static inline float goertzel_result(goertzel_state_t *s) { goertzel_result_t r;