aboutsummaryrefslogtreecommitdiff
path: root/src/Main.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-01-10 09:58:18 +0100
committerMax Kellermann <max@duempel.org>2013-01-10 10:01:24 +0100
commit18076ac9b766485efc45931e62a164e5cc1a8542 (patch)
tree111b228b929dff89978807e638afcba3897210b2 /src/Main.cxx
parentad15ca7104ca299c87b6ac86441573a00c589fef (diff)
PlayerThread: use pc.cond instead of main_cond
The main_cond variable was completely unnecessary. The pc.cond object can be used for both main->pc and pc->main.
Diffstat (limited to 'src/Main.cxx')
-rw-r--r--src/Main.cxx4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/Main.cxx b/src/Main.cxx
index 0124cc38..bece3720 100644
--- a/src/Main.cxx
+++ b/src/Main.cxx
@@ -98,8 +98,6 @@ enum {
GThread *main_task;
GMainLoop *main_loop;
-GCond *main_cond;
-
Partition *global_partition;
static bool
@@ -404,7 +402,6 @@ int mpd_main(int argc, char *argv[])
main_task = g_thread_self();
main_loop = g_main_loop_new(NULL, FALSE);
- main_cond = g_cond_new();
GlobalEvents::Initialize();
GlobalEvents::Register(GlobalEvents::IDLE, idle_event_emitted);
@@ -536,7 +533,6 @@ int mpd_main(int argc, char *argv[])
sticker_global_finish();
#endif
- g_cond_free(main_cond);
GlobalEvents::Deinitialize();
playlist_list_global_finish();