aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2010-12-22 08:29:49 +0100
committerMax Kellermann <max@duempel.org>2010-12-22 09:43:49 +0100
commit07feec7ea6437799e7faac1e83b287243e825e0f (patch)
treeb26d3cd9c59dc85eb91f95d8dbbcd334104e673a /src
parente7471f589aa028a30c40d734efb7a3fd8fa36dd1 (diff)
downloadmpd-07feec7ea6437799e7faac1e83b287243e825e0f.tar.gz
mpd-07feec7ea6437799e7faac1e83b287243e825e0f.tar.xz
mpd-07feec7ea6437799e7faac1e83b287243e825e0f.zip
input/cdda: remove unused function input_cdda_archive_extract_trackno()
Diffstat (limited to 'src')
-rw-r--r--src/input/cdda_input_plugin.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/src/input/cdda_input_plugin.c b/src/input/cdda_input_plugin.c
index a0cb7e14b..63a718c8d 100644
--- a/src/input/cdda_input_plugin.c
+++ b/src/input/cdda_input_plugin.c
@@ -247,30 +247,6 @@ input_cdda_open(const char *uri, GError **error_r)
return &i->base;
}
-
-/* single archive handling */
-static int
-input_cdda_archive_extract_trackno(const char *path)
-{
- long value;
- char *endptr, *str;
-
- //remove .wav
- str = strrchr(path, '.');
- if (str)
- *str = 0;
-
- //remove leading 0's
- while (*path == '0')
- path++;
-
- value = strtol(path, &endptr, 0);
- if (*endptr != 0 || value < 0) {
- return -1;
- }
- return value;
-}
-
static bool
input_cdda_seek(struct input_stream *is,
goffset offset, int whence, GError **error_r)