afs.c: Remove some dead code.
authorAndre Noll <maan@systemlinux.org>
Thu, 4 Oct 2007 14:41:39 +0000 (16:41 +0200)
committerAndre Noll <maan@systemlinux.org>
Thu, 4 Oct 2007 14:41:39 +0000 (16:41 +0200)
afs.c

diff --git a/afs.c b/afs.c
index 33bc6e2..455bee7 100644 (file)
--- a/afs.c
+++ b/afs.c
@@ -450,27 +450,6 @@ int close_audio_file(struct audio_file_data *afd)
        return para_munmap(afd->map.data, afd->map.size);
 }
 
-#if 0
-static void play_loop(enum play_mode current_play_mode)
-{
-       int i, ret;
-       struct audio_file_data afd;
-
-       afd.current_play_mode = current_play_mode;
-       for (i = 0; i < 0; i++) {
-               ret = open_next_audio_file(&afd);
-               if (ret < 0) {
-                       PARA_ERROR_LOG("failed to open next audio file: %d\n", ret);
-                       return;
-               }
-               PARA_NOTICE_LOG("next audio file: %s, score: %li\n", afd.path, afd.score);
-               sleep(1);
-               close_audio_file(&afd);
-       }
-}
-#endif
-
-
 static enum play_mode init_admissible_files(void)
 {
        int ret;