playlist: removed g_rand, PLAYLIST_HASH_MULT
Both are unused.
This commit is contained in:
parent
688880bc0b
commit
69c74afa25
@ -65,11 +65,6 @@
|
|||||||
|
|
||||||
#define PLAYLIST_BUFFER_SIZE 2*MPD_PATH_MAX
|
#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 */
|
/** the global playlist object */
|
||||||
static struct playlist playlist;
|
static struct playlist playlist;
|
||||||
|
|
||||||
@ -102,8 +97,6 @@ playlist_tag_event(void)
|
|||||||
|
|
||||||
void initPlaylist(void)
|
void initPlaylist(void)
|
||||||
{
|
{
|
||||||
g_rand = g_rand_new();
|
|
||||||
|
|
||||||
queue_init(&playlist.queue,
|
queue_init(&playlist.queue,
|
||||||
config_get_positive(CONF_MAX_PLAYLIST_LENGTH,
|
config_get_positive(CONF_MAX_PLAYLIST_LENGTH,
|
||||||
DEFAULT_PLAYLIST_MAX_LENGTH));
|
DEFAULT_PLAYLIST_MAX_LENGTH));
|
||||||
@ -117,9 +110,6 @@ void initPlaylist(void)
|
|||||||
void finishPlaylist(void)
|
void finishPlaylist(void)
|
||||||
{
|
{
|
||||||
queue_finish(&playlist.queue);
|
queue_finish(&playlist.queue);
|
||||||
|
|
||||||
g_rand_free(g_rand);
|
|
||||||
g_rand = NULL;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const struct queue *
|
const struct queue *
|
||||||
|
Loading…
Reference in New Issue
Block a user