diff --git a/gtk/gtkaccelgroup.c b/gtk/gtkaccelgroup.c index 77e9bf963e..43a8c4e525 100644 --- a/gtk/gtkaccelgroup.c +++ b/gtk/gtkaccelgroup.c @@ -540,9 +540,6 @@ gtk_accelerator_name_with_keycode (GdkDisplay *display, { gchar *gtk_name; - if (display == NULL) - display = gdk_display_manager_get_default_display (gdk_display_manager_get ()); - gtk_name = gtk_accelerator_name (accelerator_key, accelerator_mods); if (!accelerator_key) @@ -658,9 +655,6 @@ gtk_accelerator_get_label_with_keycode (GdkDisplay *display, { gchar *gtk_label; - if (display == NULL) - display = gdk_display_manager_get_default_display (gdk_display_manager_get ()); - gtk_label = gtk_accelerator_get_label (accelerator_key, accelerator_mods); if (!accelerator_key)