score.c: Remove unused admissible_file_loop_reverse().
authorAndre Noll <maan@tuebingen.mpg.de>
Thu, 1 Jan 2015 18:09:46 +0000 (18:09 +0000)
committerAndre Noll <maan@tuebingen.mpg.de>
Mon, 12 Jan 2015 22:29:07 +0000 (23:29 +0100)
Found by cppcheck.

afs.h
score.c

diff --git a/afs.h b/afs.h
index f70d5c93211e4264cf19b749ef96283176d998a6..9e8c7c0ee52bce01350bcc8ae51e36a46c04f47d 100644 (file)
--- 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 53e55dae1a22f4c4d96863332a50af4481002a77..1508b603569b6cf2d64571365ccae0b1b7d87776 100644 (file)
--- 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.
  *