From 98dbdf72b3c35878494df4954a447cec250a835d Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 2 Jan 2013 22:01:04 +0100 Subject: PlaylistVector: move struct playlist_metadata to PlaylistInfo.hxx --- src/PlaylistVector.cxx | 23 +---------------------- 1 file changed, 1 insertion(+), 22 deletions(-) (limited to 'src/PlaylistVector.cxx') diff --git a/src/PlaylistVector.cxx b/src/PlaylistVector.cxx index b9f671929..726a69337 100644 --- a/src/PlaylistVector.cxx +++ b/src/PlaylistVector.cxx @@ -1,5 +1,5 @@ /* - * Copyright (C) 2003-2011 The Music Player Daemon Project + * Copyright (C) 2003-2013 The Music Player Daemon Project * http://www.musicpd.org * * This program is free software; you can redistribute it and/or modify @@ -25,27 +25,6 @@ #include #include -static struct playlist_metadata * -playlist_metadata_new(const char *name, time_t mtime) -{ - assert(name != NULL); - - struct playlist_metadata *pm = g_slice_new(struct playlist_metadata); - pm->name = g_strdup(name); - pm->mtime = mtime; - return pm; -} - -static void -playlist_metadata_free(struct playlist_metadata *pm) -{ - assert(pm != NULL); - assert(pm->name != NULL); - - g_free(pm->name); - g_slice_free(struct playlist_metadata, pm); -} - void playlist_vector_deinit(struct list_head *pv) { -- cgit v1.2.3