summaryrefslogtreecommitdiff
path: root/playlist.c
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2009-08-09 16:47:09 +0200
committerGravatar waker <wakeroid@gmail.com>2009-08-09 16:47:09 +0200
commit080b997dcb0bc7e99bb635ad96b318f786867c41 (patch)
tree67cb633923eb4f3b602ce4d9cbab56034486b42f /playlist.c
parent0a4f45531cd0ae567f343434624436368dbdf080 (diff)
added search refresh after adding to playlist
Diffstat (limited to 'playlist.c')
-rw-r--r--playlist.c41
1 files changed, 0 insertions, 41 deletions
diff --git a/playlist.c b/playlist.c
index 8624bfc1..3fcb3596 100644
--- a/playlist.c
+++ b/playlist.c
@@ -905,47 +905,6 @@ ps_delete_selected (void) {
}
void
-ps_shuffle (void) {
- return;
-#if 0
- playItem_t *head = NULL;
- playItem_t *tail = NULL;
- playItem_t *it;
- int cnt = 0;
- for (it = playlist_head[PS_MAIN]; it; it = it->next[PS_MAIN]) {
- it->next[PS_SHUFFLE] = head;
- head = it;
- cnt++;
- }
- playlist_head[PS_SHUFFLE] = NULL;
- while (cnt > 0) {
- int idx = (float)rand ()/RAND_MAX * cnt;
- int i = 0;
- playItem_t *prev = NULL;
- for (it = head; it; it = it->next[PS_SHUFFLE], i++) {
- if (i == idx) {
- if (prev) {
- prev->next[PS_SHUFFLE] = it->next[PS_SHUFFLE];
- }
- else {
- head = it->next[PS_SHUFFLE];
- }
- // prepend to shuffled playlist
- it->next[PS_SHUFFLE] = playlist_shuffle_head;
- if (!playlist_shuffle_head) {
- tail = it;
- }
- playlist_shuffle_head = it;
- cnt--;
- break;
- }
- prev = it;
- }
- }
-#endif
-}
-
-void
ps_set_order (int order) {
ps_order = order;
}