[gtk/matthiasc/for-master] gdk: Drop an unused function
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/matthiasc/for-master] gdk: Drop an unused function
- Date: Wed, 7 Oct 2020 23:36:49 +0000 (UTC)
commit 17e6ee02a1ae2bddf8502f518bf74632f2f602e6
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Oct 7 19:36:07 2020 -0400
gdk: Drop an unused function
No users of gdk_display_peek_event, so drop it.
gdk/gdkdisplay.c | 33 +++------------------------------
gdk/gdkdisplayprivate.h | 1 -
2 files changed, 3 insertions(+), 31 deletions(-)
---
diff --git a/gdk/gdkdisplay.c b/gdk/gdkdisplay.c
index 279827fc86..8241764ea1 100644
--- a/gdk/gdkdisplay.c
+++ b/gdk/gdkdisplay.c
@@ -408,13 +408,13 @@ gdk_display_is_closed (GdkDisplay *display)
return display->closed;
}
-/**
+/*<private>
* gdk_display_get_event:
* @display: a #GdkDisplay
- *
+ *
* Gets the next #GdkEvent to be processed for @display, fetching events from the
* windowing system if necessary.
- *
+ *
* Returns: (nullable) (transfer full): the next #GdkEvent to be processed,
* or %NULL if no events are pending
*/
@@ -429,33 +429,6 @@ gdk_display_get_event (GdkDisplay *display)
return _gdk_event_unqueue (display);
}
-/**
- * gdk_display_peek_event:
- * @display: a #GdkDisplay
- *
- * Gets a copy of the first #GdkEvent in the @display’s event queue, without
- * removing the event from the queue. (Note that this function will
- * not get more events from the windowing system. It only checks the events
- * that have already been moved to the GDK event queue.)
- *
- * Returns: (nullable) (transfer full): the first #GdkEvent on the
- * event queue
- **/
-GdkEvent *
-gdk_display_peek_event (GdkDisplay *display)
-{
- GList *tmp_list;
-
- g_return_val_if_fail (GDK_IS_DISPLAY (display), NULL);
-
- tmp_list = _gdk_event_queue_find_first (display);
-
- if (tmp_list != NULL)
- return gdk_event_ref (tmp_list->data);
-
- return NULL;
-}
-
/**
* gdk_display_put_event:
* @display: a #GdkDisplay
diff --git a/gdk/gdkdisplayprivate.h b/gdk/gdkdisplayprivate.h
index 3add2aa31f..f9ef10df74 100644
--- a/gdk/gdkdisplayprivate.h
+++ b/gdk/gdkdisplayprivate.h
@@ -241,7 +241,6 @@ void gdk_display_setting_changed (GdkDisplay *display
const char *name);
GdkEvent * gdk_display_get_event (GdkDisplay *display);
-GdkEvent * gdk_display_peek_event (GdkDisplay *display);
gboolean gdk_display_has_pending (GdkDisplay *display);
GdkKeymap * gdk_display_get_keymap (GdkDisplay *display);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]