aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-11-02 17:22:41 +0100
committerMax Kellermann <max@duempel.org>2009-11-02 17:22:41 +0100
commite814f8d5bd0f701710fd44cf3743f00226ad67f0 (patch)
tree6a15964b0a0186f455ba237f6394342fae8d95af
parent64a481d8732cc45b01b70d18cf95e1374b7dcba7 (diff)
downloadmpd-e814f8d5bd0f701710fd44cf3743f00226ad67f0.tar.gz
mpd-e814f8d5bd0f701710fd44cf3743f00226ad67f0.tar.xz
mpd-e814f8d5bd0f701710fd44cf3743f00226ad67f0.zip
update: removed unused variable "update_notify"
That variable has been superseded by "remove_notify" (defined in update_remove.c).
-rw-r--r--src/update.c8
-rw-r--r--src/update_internal.h3
2 files changed, 0 insertions, 11 deletions
diff --git a/src/update.c b/src/update.c
index 8570d8ab3..2bab38d9d 100644
--- a/src/update.c
+++ b/src/update.c
@@ -24,7 +24,6 @@
#include "archive_list.h"
#include "playlist.h"
#include "event_pipe.h"
-#include "notify.h"
#include "update.h"
#include "idle.h"
#include "stats.h"
@@ -49,9 +48,6 @@ static const unsigned update_task_id_max = 1 << 15;
static unsigned update_task_id;
-/** used by the main thread to notify the update thread */
-struct notify update_notify;
-
/* XXX this flag is passed to update_task() */
static bool discard;
@@ -153,8 +149,6 @@ static void update_finished_event(void)
void update_global_init(void)
{
- notify_init(&update_notify);
-
event_pipe_register(PIPE_EVENT_UPDATE, update_finished_event);
update_remove_global_init();
@@ -165,6 +159,4 @@ void update_global_finish(void)
{
update_walk_global_finish();
update_remove_global_finish();
-
- notify_deinit(&update_notify);
}
diff --git a/src/update_internal.h b/src/update_internal.h
index 14701feb5..0655c727d 100644
--- a/src/update_internal.h
+++ b/src/update_internal.h
@@ -29,9 +29,6 @@ struct stat;
struct song;
struct directory;
-/** used by the main thread to notify the update thread */
-extern struct notify update_notify;
-
unsigned
update_queue_push(const char *path, bool discard, unsigned base);