event_pipe: removed the unused function event_pipe_wait()
This commit is contained in:
@@ -51,8 +51,10 @@ event_pipe_invoke(enum pipe_event event)
|
|||||||
event_pipe_callbacks[event]();
|
event_pipe_callbacks[event]();
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static gboolean
|
||||||
consume_pipe(void)
|
main_notify_event(G_GNUC_UNUSED GIOChannel *source,
|
||||||
|
G_GNUC_UNUSED GIOCondition condition,
|
||||||
|
G_GNUC_UNUSED gpointer data)
|
||||||
{
|
{
|
||||||
char buffer[256];
|
char buffer[256];
|
||||||
ssize_t r = read(event_pipe[0], buffer, sizeof(buffer));
|
ssize_t r = read(event_pipe[0], buffer, sizeof(buffer));
|
||||||
@@ -70,14 +72,7 @@ consume_pipe(void)
|
|||||||
if (events[i])
|
if (events[i])
|
||||||
/* invoke the event handler */
|
/* invoke the event handler */
|
||||||
event_pipe_invoke(i);
|
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;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -148,8 +143,3 @@ void event_pipe_emit_fast(enum pipe_event event)
|
|||||||
pipe_events[event] = true;
|
pipe_events[event] = true;
|
||||||
write(event_pipe[1], "", 1);
|
write(event_pipe[1], "", 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
void event_pipe_wait(void)
|
|
||||||
{
|
|
||||||
consume_pipe();
|
|
||||||
}
|
|
||||||
|
@@ -60,6 +60,4 @@ void event_pipe_emit(enum pipe_event event);
|
|||||||
*/
|
*/
|
||||||
void event_pipe_emit_fast(enum pipe_event event);
|
void event_pipe_emit_fast(enum pipe_event event);
|
||||||
|
|
||||||
void event_pipe_wait(void);
|
|
||||||
|
|
||||||
#endif /* MAIN_NOTIFY_H */
|
#endif /* MAIN_NOTIFY_H */
|
||||||
|
Reference in New Issue
Block a user