summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 40feefe)
raw | patch | inline | side by side (parent: 40feefe)
author | Max Kellermann <max@duempel.org> | |
Sat, 3 Oct 2009 17:19:05 +0000 (19:19 +0200) | ||
committer | Max Kellermann <max@duempel.org> | |
Sat, 3 Oct 2009 17:19:05 +0000 (19:19 +0200) |
This hack isn't used anymore.
src/filelist.c | patch | blob | history | |
src/filelist.h | patch | blob | history |
diff --git a/src/filelist.c b/src/filelist.c
index a8b8b3ca364b5445719873ac9c98c30078aa39ef..063acbbc8cf1deb8e0f50604e2abe8ef7ca33fa7 100644 (file)
--- a/src/filelist.c
+++ b/src/filelist.c
return entry;
}
-struct filelist_entry *
-filelist_prepend(struct filelist *filelist, struct mpd_entity *entity)
-{
- struct filelist_entry *entry = filelist_append(filelist, entity);
-
- /* this is very slow, but we should optimize screen_artist.c
- later so that this function can be removed, so I'm not in
- the mood to implement something better here */
-
- if (!filelist_is_empty(filelist)) {
- guint i;
-
- for (i = filelist_length(filelist) - 1; i > 0; --i)
- g_ptr_array_index(filelist->entries, i) =
- filelist_get(filelist, i - 1);
-
- g_ptr_array_index(filelist->entries, 0) = entry;
- }
-
- return entry;
-}
-
void
filelist_move(struct filelist *filelist, struct filelist *from)
{
diff --git a/src/filelist.h b/src/filelist.h
index a0805d16bbf25921538f03bcb2fa95e3fb581187..bbae9d67209ebaae0aa6c5592fd0bde33eedbc03 100644 (file)
--- a/src/filelist.h
+++ b/src/filelist.h
struct filelist_entry *
filelist_append(struct filelist *filelist, struct mpd_entity *entity);
-struct filelist_entry *
-filelist_prepend(struct filelist *filelist, struct mpd_entity *entity);
-
void
filelist_move(struct filelist *filelist, struct filelist *from);