From: Andre Noll Date: Thu, 1 Jan 2015 18:09:46 +0000 (+0000) Subject: score.c: Remove unused admissible_file_loop_reverse(). X-Git-Tag: v0.5.4~25 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=83d050581e7de58b2395c5200f051ad04d4e4509;ds=sidebyside score.c: Remove unused admissible_file_loop_reverse(). Found by cppcheck. --- diff --git a/afs.h b/afs.h index f70d5c93..9e8c7c0e 100644 --- a/afs.h +++ b/afs.h @@ -245,7 +245,6 @@ int for_each_matching_row(struct pattern_match_data *pmd); /* score */ void score_init(struct afs_table *t); int admissible_file_loop(void *data, osl_rbtree_loop_func *func); -int admissible_file_loop_reverse(void *data, osl_rbtree_loop_func *func); int score_get_best(struct osl_row **aft_row, long *score); int get_score_and_aft_row(struct osl_row *score_row, long *score, struct osl_row **aft_row); int score_add(const struct osl_row *row, long score); diff --git a/score.c b/score.c index 53e55dae..1508b603 100644 --- a/score.c +++ b/score.c @@ -245,29 +245,12 @@ static int get_score_row_from_aft_row(const struct osl_row *aft_row, * * This is used for the ls command. The \a data parameter is passed as the * second argument to \a func. - * - * \sa admissible_file_loop_reverse(). */ int admissible_file_loop(void *data, osl_rbtree_loop_func *func) { return osl(osl_rbtree_loop(score_table, SCORECOL_SCORE, data, func)); } -/** - * Loop over all files in the score table in reverse order. - * - * \param data As in admissible_file_loop(). - * \param func As in admissible_file_loop(). - * - * \return Same return value as admissible_file_loop(). - * - * \sa admissible_file_loop(), osl_rbtree_loop_reverse(). - */ -int admissible_file_loop_reverse(void *data, osl_rbtree_loop_func *func) -{ - return osl(osl_rbtree_loop_reverse(score_table, SCORECOL_SCORE, data, func)); -} - /** * Get the admissible audio file with highest score. *