[gtk/test-coverage: 2/7] gdk: Drop an unused function
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/test-coverage: 2/7] gdk: Drop an unused function
- Date: Sat, 16 Jul 2022 13:44:04 +0000 (UTC)
commit c642649311bd18b87528b60b6801051e8dfa47ee
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Jul 15 23:03:28 2022 -0400
gdk: Drop an unused function
gdk/gdkkeys.c | 16 ----------------
gdk/gdkkeysprivate.h | 2 --
2 files changed, 18 deletions(-)
---
diff --git a/gdk/gdkkeys.c b/gdk/gdkkeys.c
index b06fec2dc6..714d164c84 100644
--- a/gdk/gdkkeys.c
+++ b/gdk/gdkkeys.c
@@ -199,22 +199,6 @@ gdk_keymap_init (GdkKeymap *keymap)
keymap->cache = g_hash_table_new (g_direct_hash, g_direct_equal);
}
-/*< private >
- * gdk_keymap_get_display:
- * @keymap: a `GdkKeymap`
- *
- * Retrieves the `GdkDisplay` associated to the @keymap.
- *
- * Returns: (transfer none): a `GdkDisplay`
- */
-GdkDisplay *
-gdk_keymap_get_display (GdkKeymap *keymap)
-{
- g_return_val_if_fail (GDK_IS_KEYMAP (keymap), NULL);
-
- return keymap->display;
-}
-
/* Other key-handling stuff
*/
diff --git a/gdk/gdkkeysprivate.h b/gdk/gdkkeysprivate.h
index cc9b17aa9a..29d2fcd670 100644
--- a/gdk/gdkkeysprivate.h
+++ b/gdk/gdkkeysprivate.h
@@ -89,8 +89,6 @@ struct _GdkKeymap
GType gdk_keymap_get_type (void) G_GNUC_CONST;
-GdkDisplay * gdk_keymap_get_display (GdkKeymap *keymap);
-
guint gdk_keymap_lookup_key (GdkKeymap *keymap,
const GdkKeymapKey *key);
gboolean gdk_keymap_translate_keyboard_state (GdkKeymap *keymap,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]