diff --git a/docs/reference/gdk/gdk4-sections.txt b/docs/reference/gdk/gdk4-sections.txt index beb22e21be..20256a01e9 100644 --- a/docs/reference/gdk/gdk4-sections.txt +++ b/docs/reference/gdk/gdk4-sections.txt @@ -471,8 +471,6 @@ gdk_threads_add_timeout_seconds_full keys GdkKeymap GdkKeymapKey -gdk_keymap_get_default -gdk_keymap_get_for_display gdk_keymap_lookup_key gdk_keymap_translate_keyboard_state gdk_keymap_get_entries_for_keyval diff --git a/gdk/gdkdisplay.c b/gdk/gdkdisplay.c index 35fce61b52..f5059a30ea 100644 --- a/gdk/gdkdisplay.c +++ b/gdk/gdkdisplay.c @@ -1458,24 +1458,6 @@ _gdk_display_create_window (GdkDisplay *display) NULL); } -/** - * gdk_keymap_get_for_display: - * @display: the #GdkDisplay. - * - * Returns the #GdkKeymap attached to @display. - * - * Returns: (transfer none): the #GdkKeymap attached to @display. - * - * Since: 2.2 - */ -GdkKeymap* -gdk_keymap_get_for_display (GdkDisplay *display) -{ - g_return_val_if_fail (GDK_IS_DISPLAY (display), NULL); - - return GDK_DISPLAY_GET_CLASS (display)->get_keymap (display); -} - /** * gdk_display_get_keymap: * @display: the #GdkDisplay diff --git a/gdk/gdkkeys.h b/gdk/gdkkeys.h index d7906ae6c6..304c86e4e2 100644 --- a/gdk/gdkkeys.h +++ b/gdk/gdkkeys.h @@ -80,9 +80,6 @@ struct _GdkKeymapKey GDK_AVAILABLE_IN_ALL GType gdk_keymap_get_type (void) G_GNUC_CONST; -GDK_AVAILABLE_IN_ALL -GdkKeymap* gdk_keymap_get_for_display (GdkDisplay *display); - GDK_AVAILABLE_IN_ALL guint gdk_keymap_lookup_key (GdkKeymap *keymap, const GdkKeymapKey *key);