aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-01-25 14:01:27 +0100
committerMax Kellermann <max@duempel.org>2009-01-25 14:01:27 +0100
commit69c74afa2512747122880c35ac685d319057ab6d (patch)
treedda626dbe5cb5d5e8dd40cdbed2aad131ed3d80b
parent688880bc0b22d13321da62ae93363e4b85846f68 (diff)
downloadmpd-69c74afa2512747122880c35ac685d319057ab6d.tar.gz
mpd-69c74afa2512747122880c35ac685d319057ab6d.tar.xz
mpd-69c74afa2512747122880c35ac685d319057ab6d.zip
playlist: removed g_rand, PLAYLIST_HASH_MULT
Both are unused.
-rw-r--r--src/playlist.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/playlist.c b/src/playlist.c
index 6578713db..57d0771dc 100644
--- a/src/playlist.c
+++ b/src/playlist.c
@@ -65,11 +65,6 @@
#define PLAYLIST_BUFFER_SIZE 2*MPD_PATH_MAX
-#define PLAYLIST_HASH_MULT 4
-
-/** random number generator fur shuffling */
-static GRand *g_rand;
-
/** the global playlist object */
static struct playlist playlist;
@@ -102,8 +97,6 @@ playlist_tag_event(void)
void initPlaylist(void)
{
- g_rand = g_rand_new();
-
queue_init(&playlist.queue,
config_get_positive(CONF_MAX_PLAYLIST_LENGTH,
DEFAULT_PLAYLIST_MAX_LENGTH));
@@ -117,9 +110,6 @@ void initPlaylist(void)
void finishPlaylist(void)
{
queue_finish(&playlist.queue);
-
- g_rand_free(g_rand);
- g_rand = NULL;
}
const struct queue *