aboutsummaryrefslogtreecommitdiffstats
path: root/src/event_pipe.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-01-04 20:32:45 +0100
committerMax Kellermann <max@duempel.org>2009-01-04 20:32:45 +0100
commit21173ea4a90ebfc63d593e3c94aceb146fe749f0 (patch)
tree85b2541995c9b15375b555b5172279bbe1a5bd11 /src/event_pipe.c
parente4a53df7db8a8520c552a718ee7671b986312919 (diff)
downloadmpd-21173ea4a90ebfc63d593e3c94aceb146fe749f0.tar.gz
mpd-21173ea4a90ebfc63d593e3c94aceb146fe749f0.tar.xz
mpd-21173ea4a90ebfc63d593e3c94aceb146fe749f0.zip
event_pipe: removed the unused function event_pipe_wait()
Diffstat (limited to 'src/event_pipe.c')
-rw-r--r--src/event_pipe.c18
1 files changed, 4 insertions, 14 deletions
diff --git a/src/event_pipe.c b/src/event_pipe.c
index 0a2debffa..f870a187a 100644
--- a/src/event_pipe.c
+++ b/src/event_pipe.c
@@ -51,8 +51,10 @@ event_pipe_invoke(enum pipe_event event)
event_pipe_callbacks[event]();
}
-static void
-consume_pipe(void)
+static gboolean
+main_notify_event(G_GNUC_UNUSED GIOChannel *source,
+ G_GNUC_UNUSED GIOCondition condition,
+ G_GNUC_UNUSED gpointer data)
{
char buffer[256];
ssize_t r = read(event_pipe[0], buffer, sizeof(buffer));
@@ -70,14 +72,7 @@ consume_pipe(void)
if (events[i])
/* invoke the event handler */
event_pipe_invoke(i);
-}
-static gboolean
-main_notify_event(G_GNUC_UNUSED GIOChannel *source,
- G_GNUC_UNUSED GIOCondition condition,
- G_GNUC_UNUSED gpointer data)
-{
- consume_pipe();
return true;
}
@@ -148,8 +143,3 @@ void event_pipe_emit_fast(enum pipe_event event)
pipe_events[event] = true;
write(event_pipe[1], "", 1);
}
-
-void event_pipe_wait(void)
-{
- consume_pipe();
-}