[gtk+] GDK W32: Remove obsolete assertions
- From: Руслан Ижбулатов <ruslanizhb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] GDK W32: Remove obsolete assertions
- Date: Fri, 26 Aug 2016 20:46:50 +0000 (UTC)
commit b05ed13710dc52c11bb1fde6f6aaf064d8ce5c58
Author: Руслан Ижбулатов <lrn1986 gmail com>
Date: Fri Aug 26 20:46:27 2016 +0000
GDK W32: Remove obsolete assertions
gdk/win32/gdkkeys-win32.c | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
---
diff --git a/gdk/win32/gdkkeys-win32.c b/gdk/win32/gdkkeys-win32.c
index 2318079..e151a8e 100644
--- a/gdk/win32/gdkkeys-win32.c
+++ b/gdk/win32/gdkkeys-win32.c
@@ -1458,7 +1458,6 @@ gdk_win32_keymap_lookup_key (GdkKeymap *gdk_keymap,
g_return_val_if_fail (gdk_keymap == NULL || GDK_IS_KEYMAP (gdk_keymap), 0);
g_return_val_if_fail (key != NULL, 0);
- g_return_val_if_fail (key->group < 4, 0);
/* Accept only the default keymap */
if (gdk_keymap != NULL && gdk_keymap != gdk_keymap_get_default ())
@@ -1498,7 +1497,6 @@ gdk_win32_keymap_translate_keyboard_state (GdkKeymap *gdk_keymap,
GdkModifierType modifiers = GDK_SHIFT_MASK | GDK_LOCK_MASK | GDK_MOD2_MASK;
g_return_val_if_fail (gdk_keymap == NULL || GDK_IS_KEYMAP (gdk_keymap), FALSE);
- g_return_val_if_fail (group < 4, FALSE);
#if 0
GDK_NOTE (EVENTS, g_print ("gdk_keymap_translate_keyboard_state: keycode=%#x state=%#x group=%d\n",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]