diff options
author | Arjan Molenaar <gaphor@gmail.com> | 2022-11-12 20:38:29 +0100 |
---|---|---|
committer | Arjan Molenaar <gaphor@gmail.com> | 2022-12-04 12:50:20 +0100 |
commit | 097d87e502ae3167c563a79e1afdf63630258a5f (patch) | |
tree | 03b1c6ad55cea75a6a654eeb539bf483e27fa675 /gdk/macos/gdkmacoskeymap.c | |
parent | a9c9678e1f617755368f16424a03ae1f2d2ced4e (diff) | |
download | gtk+-097d87e502ae3167c563a79e1afdf63630258a5f.tar.gz |
Cleanup: remove unused variables from macos code
Remove unused variables. In case if Cairo code it would
allocate memory, which would result in a memory leak.
Diffstat (limited to 'gdk/macos/gdkmacoskeymap.c')
-rw-r--r-- | gdk/macos/gdkmacoskeymap.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gdk/macos/gdkmacoskeymap.c b/gdk/macos/gdkmacoskeymap.c index 5cf34d3ed3..a286c093bb 100644 --- a/gdk/macos/gdkmacoskeymap.c +++ b/gdk/macos/gdkmacoskeymap.c @@ -276,10 +276,8 @@ gdk_macos_keymap_update (GdkMacosKeymap *self) { UInt32 state = 0; OSStatus err; - UInt16 key_code; UniChar uc; - key_code = modifiers[j] | i; err = UCKeyTranslate (chr_data, i, kUCKeyActionDisplay, (modifiers[j] >> 8) & 0xFF, LMGetKbdType(), @@ -369,7 +367,7 @@ gdk_macos_keymap_update (GdkMacosKeymap *self) if (p[0] == known_numeric_keys[i].normal_keyval) p[0] = known_numeric_keys[i].keypad_keyval; } - + for (i = 0; i < G_N_ELEMENTS (jis_keys); i++) { p = keyval_array + jis_keys[i].keycode * KEYVALS_PER_KEYCODE; |